summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fe-text/gui-readline.c3
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, "");
}