From aa20211b6abc34156b5c5c067382d2e36fb611b8 Mon Sep 17 00:00:00 2001 From: "Alexander S. Aganichev" Date: Wed, 19 Dec 2001 09:33:09 +0000 Subject: [PATCH] Fixed undo for backspace at the line beginning --- golded3/geedit.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/golded3/geedit.cpp b/golded3/geedit.cpp index f8ba673..a0c88d9 100644 --- a/golded3/geedit.cpp +++ b/golded3/geedit.cpp @@ -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();