diff options
author | Timo Sirainen <cras@irssi.org> | 2001-11-19 15:59:55 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-11-19 15:59:55 +0000 |
commit | d56ed85d91f02889b4331e21285cf39208bf1636 (patch) | |
tree | f01ba0c1609a90c483215ecd2f527f6b88a8663c /src/fe-text | |
parent | d5f22075c756bd0f8e26ea636bc660a23580e664 (diff) | |
download | irssi-d56ed85d91f02889b4331e21285cf39208bf1636.zip |
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
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/gui-readline.c | 3 |
1 files changed, 3 insertions, 0 deletions
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, ""); } |