Skip to content

Commit

Permalink
Fix screen redraw after closing the modal editor called from a menu
Browse files Browse the repository at this point in the history
(was broken since commit 075471a)
  • Loading branch information
shmuz committed Jan 10, 2025
1 parent 1ffca76 commit 60318f2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion far/src/manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,9 @@ void Manager::ExecuteModalEV(bool RefreshScreen)
ExecuteModal();
ModalEVCount--;
if (RefreshScreen) {
ProcessKey(KEY_CONSOLE_BUFFER_RESIZE); //redraw all
auto top = GetTopModal();
if (!(top && top->GetType() == MODALTYPE_VMENU))
ProcessKey(KEY_CONSOLE_BUFFER_RESIZE); //redraw all
}
}

Expand Down

1 comment on commit 60318f2

@shmuz
Copy link
Owner Author

@shmuz shmuz commented on 60318f2 Jan 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test case (fixed by this commit):

  1. Open the macro browser
  2. Press ShiftF4 on any macro - it opens a modal editor
  3. Press Esc - the editor closes but neither panels nor macro browser are visible

Please sign in to comment.