Fixed undo for backspace at the line beginning

This commit is contained in:
Alexander S. Aganichev 2001-12-19 09:33:09 +00:00
parent da636af8e2
commit aa20211b6a

View File

@ -1132,7 +1132,10 @@ void IEclass::DelLeft() {
// Go left(/up) and delete the character there
if(not batch_mode) {
Undo->PushItem(EDIT_UNDO_VOID);
if(col == mincol)
Undo->PushItem(EDIT_UNDO_VOID|PREV_LINE, currline->prev);
else
Undo->PushItem(EDIT_UNDO_VOID);
batch_mode = BATCH_MODE;
}
GoLeft();