diff --git a/src/TextEditChecker.cpp b/src/TextEditChecker.cpp index 2ca0495..4ce68a9 100644 --- a/src/TextEditChecker.cpp +++ b/src/TextEditChecker.cpp @@ -304,6 +304,7 @@ void TextEditChecker::slotCheckRange(int pos, int removed, int added) c.setPosition(pos); c.moveWordStart(); c.setPosition(pos + added, QTextCursor::KeepAnchor); + c.moveWordEnd(QTextCursor::KeepAnchor); c.setCharFormat(QTextCharFormat()); checkSpelling(c.anchor(), c.position()); c.endEditBlock();