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
  • Loading branch information
jwortmann committed Oct 18, 2024
1 parent a6b17a4 commit 6267707
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 6267707

Please sign in to comment.