From 46aa8f32ecd60d0a5422aa2fe0b4d857ee9c0448 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 22 Feb 2013 11:06:25 +0100 Subject: [PATCH] Fix confusing behavior in search when changing directions (bug 8543) --- src/lyxfind.cpp | 4 +++- status.20x | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index 50a2a5776d..f74da52f0c 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -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); diff --git a/status.20x b/status.20x index b1f0ba3773..d00dbe3aa0 100644 --- a/status.20x +++ b/status.20x @@ -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). -- 2.39.5