-
-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: simplify double click selection #4898
refactor: simplify double click selection #4898
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clang-tidy made some suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works as intended 👍
Could you record how to make the bug appear on master? I can't reproduce it |
tested on release 2.4.6 (eb8c7f2d) steps:
|
Selection has 2 modes, single click starts single character matching at cursor move and double click starts whole word matching at cursor move. This PR refactors double click selection to use simpler approach: creates unified selection between hovered word and starting word.
1a0b611 also fixes bug present on master, where double-click selection would move at each new message due to lack of index shifting. This could be separated PR but included it here for easier testing.