]> git.lyx.org Git - lyx.git/blobdiff - src/lyxfind.cpp
adjust comment.
[lyx.git] / 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