Skip to content

Commit

Permalink
fix: integrating pasted text which has been tagged misspelled (#51)
Browse files Browse the repository at this point in the history
Fixes #50
  • Loading branch information
cheywood authored Sep 17, 2022
1 parent 690488e commit 35a732d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gtkspellcheck/spellcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,8 @@ def check_range(self, start, end, force_all=False):
)
if not self._enabled:
return
start = start.copy()
end = end.copy()
if self._iter_worker.inside_word(end):
self._iter_worker.forward_word_end(end)
if self._iter_worker.inside_word(start) or self._iter_worker.ends_word(start):
Expand Down

0 comments on commit 35a732d

Please sign in to comment.