diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-25 19:50:44 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-25 19:50:44 -0500 |
commit | 261c177480a0379e77af6ad36a6259f751a504c7 (patch) | |
tree | e8d0f6c47090b2f45915768da1bf8848b8986227 /command.c | |
parent | 9f8e74337832533a806ac0c46ee993a927f0c057 (diff) |
dismiss error box
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -158,7 +158,10 @@ void command_execute(Ted *ted, Command c, i64 argument) { } break; case CMD_ESCAPE: - if (ted->menu) { + if (*ted->error_shown) { + // dismiss error box + *ted->error_shown = '\0'; + } else if (ted->menu) { menu_close(ted, true); } else if (buffer) { buffer_disable_selection(buffer); |