]> git.lyx.org Git - features.git/commitdiff
Fix a small bug in the finding of changes. If a change starts at pos==1 and one tries...
authorVincent van Ravesteijn <vfr@lyx.org>
Wed, 15 Apr 2009 22:09:27 +0000 (22:09 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Wed, 15 Apr 2009 22:09:27 +0000 (22:09 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29251 a592a061-630c-0410-9148-cb99ea01b6c8

src/lyxfind.cpp

index 278f81c26266bfd9754de36235590462b1e4338e..efbd00b223b3acfbf5a18b6ba7cc3d2782b71860 100644 (file)
@@ -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