find: This change was not intended, amend e96a9d6329

This commit is contained in:
Kornel Benko 2018-11-25 18:25:14 +01:00
parent e96a9d6329
commit 578a4b6fb0

View File

@ -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] == '}')