Why was there a 1 ? We only have to make sure that pos - 1 >= 0.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32772 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2010-01-05 16:34:52 +00:00
parent 1d2cf2771a
commit b0910eb6d4

View 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