From f614ebb8fe343a2ef3ee14c68ee3317fa3f968b6 Mon Sep 17 00:00:00 2001 From: portix Date: Tue, 19 Feb 2013 21:55:36 +0100 Subject: Search history, use mutex for global_unbind --- src/callback.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/callback.c') diff --git a/src/callback.c b/src/callback.c index ebbf2d36..e62a435c 100644 --- a/src/callback.c +++ b/src/callback.c @@ -116,12 +116,15 @@ callback_entry_key_press(GtkWidget* entry, GdkEventKey *e) else if (mode & COMPLETION_MODE && !DWB_COMPLETE_KEY(e) && !e->is_modifier && !CLEAN_STATE(e)) completion_clean_completion(set_text); else if (mode == FIND_MODE) - return false; + { + goto skip; + } else if (DWB_COMPLETE_KEY(e)) { completion_complete(dwb_eval_completion_type(), e->state & GDK_SHIFT_MASK || e->keyval == GDK_KEY_Up); return true; } +skip: if (dwb_eval_override_key(e, CP_OVERRIDE_ENTRY)) ret = true; return ret; -- cgit v1.2.3