summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-05 19:12:23 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-05 19:12:23 -0500
commit5364889cb38e841a19f20097b117af8030a969c5 (patch)
treeacf3dda3440222076501ac4421618a88826d9aad /command.c
parent28ebeb8ad660fecb54aeb9541b72e64f9993b5ae (diff)
finishing touches for v. 0.2
Diffstat (limited to 'command.c')
-rw-r--r--command.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/command.c b/command.c
index da1701a..2c43258 100644
--- a/command.c
+++ b/command.c
@@ -104,14 +104,14 @@ void command_execute(Ted *ted, Command c, i64 argument) {
if (!buffer) {
} else if (buffer->is_line_buffer) {
switch (ted->menu) {
+ case MENU_ASK_RELOAD:
+ case MENU_WARN_UNSAVED:
case MENU_NONE:
- assert(0);
break;
case MENU_OPEN:
case MENU_SAVE_AS: {
ted->file_selector.submitted = true;
} break;
- case MENU_WARN_UNSAVED: break;
}
} else {
buffer_newline(buffer);