You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(spellcheck): use input highlighter's word segmentation to find word (#6822)
We used to use `QTextCursor`'s definition of a word when right-clicking.
This doesn't necessarily align with ours (e.g.
#6821 (comment)).
Furthermore, we didn't consider the character after a word as part of
it. Since Qt does some rounding, it might determine that you clicked on
the character after a word if you clicked on the right side of it. With
this PR, that's fixed.
Here's a visualization of which characters we consider as part of a word
(separated by even/odd):
```
███ █████ ██████ ████
this is some text#I#write in here
█████ █████ ██ ███
```
Fixes#6819
Reported-by: pajlada <rasmus.karlsson@pajlada.com>
Reviewed-by: pajlada <rasmus.karlsson@pajlada.com>
Parent-pr: #6446
0 commit comments