From 35a732d9e9507146537742afeec616e2abb2ab81 Mon Sep 17 00:00:00 2001 From: Chris Heywood <31988069+cheywood@users.noreply.github.com> Date: Sat, 17 Sep 2022 19:05:31 +1000 Subject: [PATCH] fix: integrating pasted text which has been tagged misspelled (#51) Fixes #50 --- src/gtkspellcheck/spellcheck.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gtkspellcheck/spellcheck.py b/src/gtkspellcheck/spellcheck.py index a5f8995..1bf9a28 100644 --- a/src/gtkspellcheck/spellcheck.py +++ b/src/gtkspellcheck/spellcheck.py @@ -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):