summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-03-14 17:17:25 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2021-03-14 17:17:25 -0400
commit7391d9be671cd303fdebbf12bb9bc26958d13bf4 (patch)
tree706322b25ee785c6af9ab0c85cf025362f88f40d /command.c
parent624399da9992b92f59daef4a79575c338e989e3e (diff)
fix bug where modifications weren't detected
also fix find scroll bug REALLY for real this time!
Diffstat (limited to 'command.c')
-rw-r--r--command.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/command.c b/command.c
index 310c76d..402686c 100644
--- a/command.c
+++ b/command.c
@@ -329,12 +329,16 @@ void command_execute(Ted *ted, Command c, i64 argument) {
ted->autocomplete = false;
} else if (ted->menu) {
menu_escape(ted);
- } else if (ted->find) {
- find_close(ted);
- } else if (ted->build_shown) {
- build_stop(ted);
- } else if (buffer) {
- buffer_disable_selection(buffer);
+ } else {
+ if (ted->find) {
+ find_close(ted);
+ }
+ if (ted->build_shown) {
+ build_stop(ted);
+ }
+ if (buffer) {
+ buffer_disable_selection(buffer);
+ }
}
break;