From d56ed85d91f02889b4331e21285cf39208bf1636 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 19 Nov 2001 15:59:55 +0000 Subject: [PATCH] With /SET window_auto_change ON, irssi might have crashed if input entry was not visible at that time. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2085 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/gui-readline.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index abf8f260..35f814be 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -501,6 +501,9 @@ static void key_sig_stop(void) static void sig_window_auto_changed(void) { + if (active_entry == NULL) + return; + command_history_next(active_win, gui_entry_get_text(active_entry)); gui_entry_set_text(active_entry, ""); }