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):