Fix bug 4117.

http://bugzilla.lyx.org/show_bug.cgi?id=4117


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19644 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-08-19 13:32:21 +00:00
parent 8ad113c30a
commit 8d8dbfd51c

View File

@ -566,8 +566,16 @@ goto_char_backwards:
// notify left insets and give them chance to set update flags
lyx::notifyCursorLeaves(cur.beforeDispatchCursor(), cur);
cur.fixIfBroken();
} else
cur.undispatched();
break;
}
if (cur.fixIfBroken())
// FIXME: Something bad happened. We pass the corrected Cursor
// instead of letting things go worse.
break;
// We did not manage to move the cursor.
cur.undispatched();
break;
}