diff finch/gntblist.c @ 21453:93e69f29bc5f

merge of '45a353a8a7978312260680050564b3a32f0d07aa' and 'c7f6969f2405aa75f2e945cb239e6bf9ff0d6372'
author Sadrul Habib Chowdhury <imadil@gmail.com>
date Mon, 12 Nov 2007 16:53:54 +0000
parents 0208beabfa33
children 665e04562de0
line wrap: on
line diff
--- a/finch/gntblist.c	Mon Nov 12 08:58:25 2007 +0000
+++ b/finch/gntblist.c	Mon Nov 12 16:53:54 2007 +0000
@@ -1506,6 +1506,8 @@
 {
 	if (text[0] == 27 && text[1] == 0) {
 		/* Escape was pressed */
+		if (gnt_tree_is_searching(GNT_TREE(ggblist->tree)))
+			gnt_bindable_perform_action_named(GNT_BINDABLE(ggblist->tree), "end-search", NULL);
 		remove_peripherals(ggblist);
 	} else if (strcmp(text, GNT_KEY_CTRL_O) == 0) {
 		purple_prefs_set_bool(PREF_ROOT "/showoffline",