From 504dedeb4e29806248a3ab5514e676801527db22 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 26 Nov 2000 03:52:02 +0000 Subject: [PATCH] window_find_item() was buggy if window argument was NULL git-svn-id: http://svn.irssi.org/repos/irssi/trunk@878 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-common/core/fe-windows.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fe-common/core/fe-windows.c b/src/fe-common/core/fe-windows.c index 7678c983..b3976cef 100644 --- a/src/fe-common/core/fe-windows.c +++ b/src/fe-common/core/fe-windows.c @@ -288,7 +288,8 @@ WINDOW_REC *window_find_item(WINDOW_REC *window, const char *name) item = window == NULL ? NULL : window_item_find(window->active_server, name); - if (item == NULL && window->active_server != NULL) { + if (item == NULL && (window == NULL || + window->active_server != NULL)) { /* not found from the active server - any server? */ item = window_item_find(NULL, name); }