From b682fbd4a6e53185e2556686079532ad0e42be94 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+orbitalquark@users.noreply.github.com> Date: Tue, 20 Oct 2020 11:44:50 -0400 Subject: Ensure command entry is defocused properly in the terminal version. Otherwise, autocompletion lists may not be canceled. --- src/textadept.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/textadept.c') diff --git a/src/textadept.c b/src/textadept.c index 8695bc0f..eb96e274 100644 --- a/src/textadept.c +++ b/src/textadept.c @@ -549,6 +549,7 @@ static int focus_command_entry(lua_State *L) { gtk_widget_hide(command_entry), gtk_widget_grab_focus(focused_view); #elif CURSES command_entry_focused = !command_entry_focused; + if (!command_entry_focused) SS(command_entry, SCI_SETFOCUS, 0, 0); focus_view(command_entry_focused ? command_entry : focused_view); #endif return 0; -- cgit v1.2.3