From 578a4b6fb02ebabdc14ceb9625f75315d41aa938 Mon Sep 17 00:00:00 2001 From: Kornel Benko Date: Sun, 25 Nov 2018 18:25:14 +0100 Subject: [PATCH] find: This change was not intended, amend e96a9d63294b --- src/lyxfind.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index f7df243408..0bd647fff4 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -2406,7 +2406,7 @@ int MatchStringAdv::findAux(DocIterator const & cur, int len, bool at_begin) con else result = m[m.size() - close_wildcards].first - m[0].first; - size_t pos = m.position(0); + size_t pos = m.position(size_t(0)); // Ignore last closing characters while (result > 0) { if (str[pos+result-1] == '}')