diff options
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -516,9 +516,9 @@ void command_execute(Ted *ted, Command c, i64 argument) { case CMD_ESCAPE: definition_cancel_lookup(ted); usages_cancel_lookup(ted); - if (*ted->error_shown) { - // dismiss error box - *ted->error_shown = '\0'; + if (*ted->message_shown) { + // dismiss message box + *ted->message_shown = '\0'; } else if (ted->autocomplete.open) { autocomplete_close(ted); } else if (ted->menu) { |