diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/fe-text/gui-readline.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index e0820b30..abf8f260 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -171,7 +171,8 @@ static void key_send_line(void) g_free(add_history); } - gui_entry_set_text(active_entry, ""); + if (active_entry != NULL) + gui_entry_set_text(active_entry, ""); command_history_clear_pos(active_win); } |