From de1f42bde6c985451a1b441bb597f2a198361271 Mon Sep 17 00:00:00 2001 From: Jerome St-Louis Date: Thu, 10 Jul 2014 07:26:28 -0400 Subject: [PATCH] ecere/gui/EditBox: Fixed selection menu items after undo - Calls to SetViewToCursor() that used to be responsible for invoking SelectionEnables() had been commented out, so now calling it directly as well as UpdateDirty() and SetSelectCursor() --- ecere/src/gui/controls/EditBox.ec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ecere/src/gui/controls/EditBox.ec b/ecere/src/gui/controls/EditBox.ec index e4aab98..c9408fe 100644 --- a/ecere/src/gui/controls/EditBox.ec +++ b/ecere/src/gui/controls/EditBox.ec @@ -5180,6 +5180,11 @@ public: undoBuffer.Undo(); itemEditUndo.disabled = undoBuffer.curAction == 0; itemEditRedo.disabled = undoBuffer.curAction == undoBuffer.count; + + UpdateDirty(); + SetSelectCursor(); + SelectionEnables(); + if(savedAction == undoBuffer.curAction) { modifiedDocument = false; @@ -5193,6 +5198,11 @@ public: undoBuffer.Redo(); itemEditUndo.disabled = undoBuffer.curAction == 0; itemEditRedo.disabled = undoBuffer.curAction == undoBuffer.count; + + UpdateDirty(); + SetSelectCursor(); + SelectionEnables(); + if(savedAction == undoBuffer.curAction) { modifiedDocument = false; -- 1.8.3.1