(previously broken; the cursor was even moved forward if
the character was physically removed and the next character was
marked as deleted)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16783
a592a061-630c-0410-9148-
cb99ea01b6c8
// this is the code for a normal delete, not pasting
// any paragraphs
recordUndo(cur, Undo::DELETE);
- par.eraseChar(cur.pos(), cur.buffer().params().trackChanges);
- if (par.isDeleted(cur.pos()))
+ if(!par.eraseChar(cur.pos(), cur.buffer().params().trackChanges)) {
+ // the character has been logically deleted only => skip it
cur.forwardPosNoDescend();
+ }
needsUpdate = true;
} else {
if (cur.pit() == cur.lastpit())