]> 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)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 12:39:51 +0000 (14:39 +0200)
commit703000a1a565ea612196dc0092f4b35d5eb4dd28
tree029077a9c82a7d273f9082ab34478a971038d729
parenta5e8d4500c27645de5c6832de9512624978b40c5
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