Fix wrap with Spellchecker after ignore (#10383)

This commit is contained in:
Juergen Spitzmueller 2021-03-04 18:02:04 +01:00
parent a57cdd0d30
commit 64095a0af2

View File

@ -390,6 +390,13 @@ void SpellcheckerWidget::Private::forward()
if (isWrapAround(cursor())) {
hide();
}
// If we reached the end of the document
// and have not yet wrapped (which was
// checked above), continue from beginning
if (cursor().pit() == cursor().lastpit()
&& cursor().pos() == cursor().lastpos()
&& cursor().text()->isMainText())
continueFromBeginning();
}