summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
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);