]> git.lyx.org Git - features.git/commitdiff
Why was there a 1 ? We only have to make sure that pos - 1 >= 0.
authorVincent van Ravesteijn <vfr@lyx.org>
Tue, 5 Jan 2010 16:34:52 +0000 (16:34 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Tue, 5 Jan 2010 16:34:52 +0000 (16:34 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32772 a592a061-630c-0410-9148-cb99ea01b6c8

src/lyxfind.cpp

index 77b48cf8e000aa2f9e178d69efe406c5bc9af49a..d5653a6feb10a17779f1235185951357ad9042fd 100644 (file)
@@ -377,7 +377,7 @@ bool findChange(BufferView * bv, bool next)
        // clear the selection and search the other way around (see the end
        // of this function). This will avoid changes to be selected half.
        bool search_both_sides = false;
-       if (cur.pos() > 1) {
+       if (cur.pos() > 0) {
                Change change_next_pos
                        = cur.paragraph().lookupChange(cur.pos());
                Change change_prev_pos