Skip to content

Commit

Permalink
change_flag: fix clearing text
Browse files Browse the repository at this point in the history
We need to restore the focus before clearing the text,
otherwise the Message Window ignores our request.

When the focus is on the Message Window, someone else must be in
control, e.g. for data entry or asking the user a question.
  • Loading branch information
flatcap committed Aug 4, 2021
1 parent 967709f commit 211540c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flags.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,8 +454,8 @@ int mutt_change_flag(struct Mailbox *m, struct EmailList *el, bool bf)
event = mutt_getch();
} while (event.ch == -2); // Timeout

msgwin_clear_text();
window_set_focus(old_focus);
msgwin_clear_text();

if (event.ch < 0) // SIGINT, Abort key (Ctrl-G)
return -1;
Expand Down

0 comments on commit 211540c

Please sign in to comment.