diff options
author | pommicket <pommicket@gmail.com> | 2022-12-22 15:54:56 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-22 15:54:56 -0500 |
commit | 9d04dcb7ce389c96e2c3fa1906b8896e24e65012 (patch) | |
tree | 9e167663338ce49c66216b0e70510b7c0e8aa92f | |
parent | 7568add9317f2bad5f633e5c587c76b87175899f (diff) |
make sure autocomplete is closed when buffer is switched
-rw-r--r-- | build.c | 2 | ||||
-rw-r--r-- | main.c | 1 | ||||
-rw-r--r-- | ted.c | 2 |
3 files changed, 2 insertions, 3 deletions
@@ -13,7 +13,7 @@ static void build_stop(Ted *ted) { } arr_clear(ted->build_queue); if (ted->active_buffer == &ted->build_buffer) { - ted->active_buffer = NULL; + ted_switch_to_buffer(ted, NULL); ted_reset_active_buffer(ted); } } @@ -1,6 +1,5 @@ /* @TODO: -- make sure autocomplete is closed when you switch buffers - scroll through completions - figure out under which circumstances backspace should close completions - rename buffer->filename to buffer->path @@ -184,7 +184,7 @@ static void ted_reset_active_buffer(Ted *ted) { ted_switch_to_buffer(ted, &ted->buffers[node->tabs[node->active_tab]]); } else { // there's nothing to set it to - ted->active_buffer = NULL; + ted_switch_to_buffer(ted, NULL); } } |