Skip to content

Commit

Permalink
Fix not considering given point when choosing best session in Goto co…
Browse files Browse the repository at this point in the history
…mmands (#2533)
  • Loading branch information
jwortmann authored Oct 18, 2024
1 parent a6b17a4 commit 9065e1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/goto.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def run(
fallback: bool = False,
group: int = -1
) -> None:
session = self.best_session(self.capability)
position = get_position(self.view, event, point)
session = self.best_session(self.capability, position)
if session and position is not None:
params = text_document_position_params(self.view, position)
request = Request(self.method, params, self.view, progress=True)
Expand Down

0 comments on commit 9065e1f

Please sign in to comment.