Fix some minor issues with spell checking

This commit is contained in:
Veronica Berglyd Olsen
2024-09-28 11:41:26 +02:00
parent b2e760a284
commit a716f31b17
2 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -491,7 +491,7 @@ class TextBlockData(QTextBlockUserData):
self._spellErrors = []
checker = SHARED.spelling
for match in RX_WORDS.finditer(text.replace("_", " ")):
for match in RX_WORDS.finditer(text.replace("_", " "), offset):
if (
(word := match.group(0))
and not (word.isnumeric() or word.isupper() or checker.checkWord(word))