]> git.lyx.org Git - features.git/commit
FindAdv: Eliminate a corner case in the binary search
authorKornel Benko <kornel@lyx.org>
Tue, 27 Nov 2018 18:10:27 +0000 (19:10 +0100)
committerKornel Benko <kornel@lyx.org>
Tue, 27 Nov 2018 18:10:27 +0000 (19:10 +0100)
commit1cd80ff6c8c2509f014c10c5e7840933e1d8e126
tree029077a9c82a7d273f9082ab34478a971038d729
parentd2ea9c44b21d8e8bcfc55c35e072aaedc7ca73a0
FindAdv: Eliminate a corner case in the binary search

Given the regex 'r.*r\b' and a string
"abc regular something cursor currently"
we expect to find "regular something cursor".
But while searching we may be confronted with input
"regular something cursor curr"
and so the searched string would be seen longer.
src/lyxfind.cpp