diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-05 19:12:23 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-05 19:12:23 -0500 |
commit | 5364889cb38e841a19f20097b117af8030a969c5 (patch) | |
tree | acf3dda3440222076501ac4421618a88826d9aad /command.c | |
parent | 28ebeb8ad660fecb54aeb9541b72e64f9993b5ae (diff) |
finishing touches for v. 0.2
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |