[LyX/master] Fix #12069: Broken search
Kornel Benko
kornel at lyx.org
Thu Jan 14 13:35:19 UTC 2021
commit 9bdd0b31db2e08c869c8723ebe82b5471edc9e27
Author: Kornel Benko <kornel at lyx.org>
Date: Thu Jan 14 14:33:55 2021 +0100
Fix #12069: Broken search
Do not count ignored characters as matching
---
src/Paragraph.cpp | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/Paragraph.cpp b/src/Paragraph.cpp
index d954e1e..cc0a765 100644
--- a/src/Paragraph.cpp
+++ b/src/Paragraph.cpp
@@ -4393,6 +4393,7 @@ int Paragraph::find(docstring const & str, bool cs, bool mw,
if (pos == parsize - 1)
break;
pos++;
+ --i;
continue;
}
// Ignore "invisible" letters such as ligature breaks
More information about the lyx-cvs
mailing list