Skip to content

Commit

Permalink
make GetSymbol position detection consistent with Rename request
Browse files Browse the repository at this point in the history
  • Loading branch information
Freaxed committed May 25, 2024
1 parent ff02a05 commit da30e7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/Editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1390,7 +1390,7 @@ Editor::Selection()
const BString
Editor::GetSymbol()
{
int32 position = SendMessage(SCI_GETCURRENTPOS);
int32 position = SendMessage(SCI_GETSELECTIONSTART, 0, 0);
int32 start = SendMessage(SCI_WORDSTARTPOSITION, position);
int32 end = SendMessage(SCI_WORDENDPOSITION, position);
int32 size = end - start;
Expand Down

0 comments on commit da30e7c

Please sign in to comment.