]> git.lyx.org Git - features.git/commit
Try to make findadv more robust if not ignoring format
authorKornel Benko <kornel@lyx.org>
Sat, 29 Sep 2018 07:23:30 +0000 (09:23 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 12:39:49 +0000 (14:39 +0200)
commit19069a69fb5e13cfe7c2d086ea610e276fec4194
tree1f6b7a45983c73277762f356abc88cbb271eb967
parentad1387ce20fcde941b89af755062b732416cf4fe
Try to make findadv more robust if not ignoring format

If searching for instance '.+' , the found string expanded
to the end of search buffer. So we have to replace
'.' with '[^\}]'.
Also all constructs like '[^abc]' had to be changed to '[^abc\}]'
to not go behind the actual format.
There is still problem using '*', but constructs usin '+' seem to work now.
('.*' finds everything from first char in correct format
 to (including) end of next format change
 while '.+' find _only_ characters in correct format)
src/lyxfind.cpp