From 6643fac7db4c778c6506751defa2acb386d32cc9 Mon Sep 17 00:00:00 2001 From: Vincent van Ravesteijn Date: Wed, 15 Apr 2009 22:09:27 +0000 Subject: [PATCH] Fix a small bug in the finding of changes. If a change starts at pos==1 and one tries to find it backwards, the character at pos==0 was also selected as part of the change. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29251 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/lyxfind.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lyxfind.cpp b/src/lyxfind.cpp index 278f81c262..efbd00b223 100644 --- a/src/lyxfind.cpp +++ b/src/lyxfind.cpp @@ -394,7 +394,8 @@ bool findChange(BufferView * bv, bool next) break; } } else { - for (; !tip.at_begin(); tip.backwardPos()) { + for (; !tip.at_begin();) { + tip.backwardPos(); Change change = tip.paragraph().lookupChange(tip.pos()); if (change != orig_change) { // take a step forward to correctly set the selection -- 2.39.2