commit 64095a0af237f9f1cbb03b79596f836195b0175b
Author: Juergen Spitzmueller <[email protected]>
Date: Thu Mar 4 18:02:04 2021 +0100
Fix wrap with Spellchecker after ignore (#10383)
---
src/frontends/qt/GuiSpellchecker.cpp | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/src/frontends/qt/GuiSpellchecker.cpp
b/src/frontends/qt/GuiSpellchecker.cpp
index dd1f9e9..684e7c7 100644
--- a/src/frontends/qt/GuiSpellchecker.cpp
+++ b/src/frontends/qt/GuiSpellchecker.cpp
@@ -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();
}
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs