The branch, 2.0.x, has been updated. - Log -----------------------------------------------------------------
commit 1129eb0342ba2497e2ff7c41587917cef6111465 Author: Tommaso Cucinotta <[email protected]> Date: Thu Apr 4 00:43:36 2013 +0100 Fixed issue #8543 also for advanced search (cursor moved at proper end of selection before starting Find Advanced operation). diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index a81e293..a4ae870 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -1422,6 +1422,9 @@ bool findAdv(BufferView * bv, FindAndReplaceOptions const & opt) try { MatchStringAdv matchAdv(bv->buffer(), opt); + int length = bv->cursor().selectionEnd().pos() - bv->cursor().selectionBegin().pos(); + if (length > 0) + bv->putSelectionAt(bv->cursor().selectionBegin(), length, !opt.forward); findAdvReplace(bv, opt, matchAdv); cur = bv->cursor(); if (opt.forward) diff --git a/status.20x b/status.20x index 36ff771..d35946a 100644 --- a/status.20x +++ b/status.20x @@ -214,6 +214,8 @@ What's new - Fixed problem when searching with regular expressions and ignore format off (bug 8382). +- Cursor moved at proper end of selection before starting Find Advanced operation (fixing issue #8543 for advanced search) + * BUILD/INSTALLATION ----------------------------------------------------------------------- Summary of changes: src/lyxfind.cpp | 3 +++ status.20x | 2 ++ 2 files changed, 5 insertions(+), 0 deletions(-) hooks/post-receive -- The LyX Source Repository
