aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2015-08-11 23:01:45 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2015-08-11 23:01:45 -0400
commitaf6f89d3e8fd8b6ffd26ecd583b7a278c8d86a15 (patch)
tree863fe364f0dcc86d7a15f66302a411409a8ce492
parent9b31511e377ba6ed7a310a95bc372cc65afba0fa (diff)
downloadtextadept-af6f89d3e8fd8b6ffd26ecd583b7a278c8d86a15.tar.gz
textadept-af6f89d3e8fd8b6ffd26ecd583b7a278c8d86a15.zip
Fixed segfault when quitting while the command entry is open; src/textadept.c
-rw-r--r--src/textadept.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textadept.c b/src/textadept.c
index 5df8dc55..3336a0cf 100644
--- a/src/textadept.c
+++ b/src/textadept.c
@@ -2248,7 +2248,7 @@ static GtkWidget *new_findbox() {
*/
static int wc_focusout(GtkWidget *widget, GdkEvent*_, void*__) {
if (widget == window && command_entry_focused) return TRUE;
- if (widget == command_entry)
+ if (widget == command_entry && !closing)
lL_event(lua, "keypress", LUA_TNUMBER, GDK_Escape, -1);
return FALSE;
}