aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2020-10-20 11:44:50 -0400
committerGravatar mitchell <70453897+orbitalquark@users.noreply.github.com>2020-10-20 11:44:50 -0400
commitb682fbd4a6e53185e2556686079532ad0e42be94 (patch)
tree88ce7d161047c9dae9d469df330bcf712a33b5fc /src
parent034ff0cf3af7e616a5377e036852f937f485da32 (diff)
Ensure command entry is defocused properly in the terminal version.
Otherwise, autocompletion lists may not be canceled.
Diffstat (limited to 'src')
-rw-r--r--src/textadept.c1
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;