From: Vincent van Ravesteijn Date: Wed, 15 Apr 2009 22:09:27 +0000 (+0000) Subject: Fix a small bug in the finding of changes. If a change starts at pos==1 and one tries... X-Git-Tag: 2.0.0~6831 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=6643fac7db4c778c6506751defa2acb386d32cc9;p=features.git 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 --- 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