diff options
author | mitchell <70453897+orbitalquark@users.noreply.github.com> | 2020-10-20 11:44:50 -0400 |
---|---|---|
committer | mitchell <70453897+orbitalquark@users.noreply.github.com> | 2020-10-20 11:44:50 -0400 |
commit | b682fbd4a6e53185e2556686079532ad0e42be94 (patch) | |
tree | 88ce7d161047c9dae9d469df330bcf712a33b5fc /src/textadept.c | |
parent | 034ff0cf3af7e616a5377e036852f937f485da32 (diff) |
Ensure command entry is defocused properly in the terminal version.
Otherwise, autocompletion lists may not be canceled.
Diffstat (limited to 'src/textadept.c')
-rw-r--r-- | src/textadept.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |