summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-25 19:50:44 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-25 19:50:44 -0500
commit261c177480a0379e77af6ad36a6259f751a504c7 (patch)
treee8d0f6c47090b2f45915768da1bf8848b8986227 /command.c
parent9f8e74337832533a806ac0c46ee993a927f0c057 (diff)
dismiss error box
Diffstat (limited to 'command.c')
-rw-r--r--command.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/command.c b/command.c
index a8dc7e2..2364442 100644
--- a/command.c
+++ b/command.c
@@ -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);