commit 9bdd0b31db2e08c869c8723ebe82b5471edc9e27
Author: Kornel Benko <[email protected]>
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
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs