aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/textadept.c
diff options
context:
space:
mode:
authorGravatar mitchell <none@none>2021-07-27 00:06:05 -0400
committerGravatar mitchell <none@none>2021-07-27 00:06:05 -0400
commit4ae49157db9b152978f911d2ed6695e586f2d138 (patch)
tree19e6d4f502c82def8efd82bad84d909d5280c4d6 /src/textadept.c
parent365fffe17345b60cee32dc34feccbe19b42dfbe7 (diff)
Attempt to work around autocompletion list not hiding when command entry hides on Windows.
Ideally Scintilla would handle this properly, as this issue was introduced in a recent 5.x release.
Diffstat (limited to 'src/textadept.c')
-rw-r--r--src/textadept.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/textadept.c b/src/textadept.c
index cf8f7995..85076391 100644
--- a/src/textadept.c
+++ b/src/textadept.c
@@ -535,7 +535,8 @@ static int focus_command_entry(lua_State *L) {
if (!gtk_widget_get_visible(command_entry))
gtk_widget_show(command_entry), gtk_widget_grab_focus(command_entry);
else
- gtk_widget_hide(command_entry), gtk_widget_grab_focus(focused_view);
+ SS(command_entry, SCI_CANCEL, 0, 0), gtk_widget_hide(command_entry),
+ gtk_widget_grab_focus(focused_view);
#elif CURSES
command_entry_active = !command_entry_active;
if (!command_entry_active) SS(command_entry, SCI_SETFOCUS, 0, 0);