Fix confusing behavior in search when changing directions (bug 8543)

This commit is contained in:
Jean-Marc Lasgouttes 2013-02-22 11:06:25 +01:00
parent 1b9150e673
commit 46aa8f32ec
2 changed files with 5 additions and 1 deletions

View File

@ -154,7 +154,9 @@ bool findOne(BufferView * bv, docstring const & searchstr,
if (!searchAllowed(searchstr))
return false;
DocIterator cur = bv->cursor();
DocIterator cur = forward
? bv->cursor().selectionEnd()
: bv->cursor().selectionBegin();
MatchString const match(searchstr, case_sens, whole);

View File

@ -130,6 +130,8 @@ What's new
- Fix a few selection bugs in tabular (bugs 4981, 7988).
- Fix confusing behavior in search when changing directions (bug 8543)
- Fix several issues when using multicolumns/multirows and decimal alignment in
table cells (bug 8285).