]> git.lyx.org Git - lyx.git/commit
FindAdv: Converting patterns without regex to use regex instead
authorKornel Benko <kornel@lyx.org>
Sun, 10 Jan 2021 16:17:37 +0000 (17:17 +0100)
committerKornel Benko <kornel@lyx.org>
Sun, 10 Jan 2021 16:17:37 +0000 (17:17 +0100)
commit31c3bddd6eb79be644aecfb933feabfc424b90b9
tree6f81cc9e371d302f3e9e5c66f2da4697766ea63a
parentc77ab339c121ba95cb25b6853545eba2780c025c
FindAdv: Converting patterns without regex to use regex instead

Makes the code with less exceptions
  (no need to differentiate beteen use_regex and !use_regex)

Move the creation of regexes to own subroutine (Handles '#if QTSEARCH ... #endif')
Use cursor position differences instead of length of matched string. This is important for putSelectionAt()
src/lyxfind.cpp