Skip to content

Commit

Permalink
+fix: Update Toolbar in case of Undo/Redo
Browse files Browse the repository at this point in the history
  • Loading branch information
RaiKoHoff committed Jun 28, 2024
1 parent a2d705d commit 7215f04
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Notepad3.c
Original file line number Diff line number Diff line change
Expand Up @@ -5132,7 +5132,6 @@ LRESULT MsgCommand(HWND hwnd, UINT umsg, WPARAM wParam, LPARAM lParam)
EditEnsureConsistentLineEndings(Globals.hwndEdit);
EndWaitCursor();
UpdateToolbar();
UpdateStatusbar(false);
}
break;

Expand All @@ -5147,6 +5146,7 @@ LRESULT MsgCommand(HWND hwnd, UINT umsg, WPARAM wParam, LPARAM lParam)
//LimitNotifyEvents(EVM_UndoRedo);
SciCall_Undo();
//RestoreNotifyEvents();
UpdateToolbar();
}
break;

Expand All @@ -5156,6 +5156,7 @@ LRESULT MsgCommand(HWND hwnd, UINT umsg, WPARAM wParam, LPARAM lParam)
//LimitNotifyEvents(EVM_UndoRedo);
SciCall_Redo();
//RestoreNotifyEvents();
UpdateToolbar();
}
break;

Expand Down Expand Up @@ -10020,6 +10021,7 @@ static void _UpdateTitlebarDelayed(const HWND hwnd)
void UpdateToolbar()
{
_DelayUpdateToolbar(_MQ_STD);
_DelayUpdateStatusbar(_MQ_STD, false);
_DelayUpdateTitlebar(_MQ_STD, Globals.hwndMain);
}

Expand Down

0 comments on commit 7215f04

Please sign in to comment.