mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
Fix confusing behavior in search when changing directions (bug 8543)
This commit is contained in:
parent
6c03b1ff74
commit
0082d183b3
@ -154,7 +154,9 @@ bool findOne(BufferView * bv, docstring const & searchstr,
|
|||||||
if (!searchAllowed(searchstr))
|
if (!searchAllowed(searchstr))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
DocIterator cur = bv->cursor();
|
DocIterator cur = forward
|
||||||
|
? bv->cursor().selectionEnd()
|
||||||
|
: bv->cursor().selectionBegin();
|
||||||
|
|
||||||
MatchString const match(searchstr, case_sens, whole);
|
MatchString const match(searchstr, case_sens, whole);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user