diff options
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/gui-readline.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-text/gui-readline.c b/src/fe-text/gui-readline.c index 6f9822e4..6bc11138 100644 --- a/src/fe-text/gui-readline.c +++ b/src/fe-text/gui-readline.c @@ -165,8 +165,10 @@ static void key_send_line(void) handle_entry_redirect(str); } - if (add_history != NULL) + if (add_history != NULL) { command_history_add(active_win, add_history, FALSE); + g_free(add_history); + } gui_entry_set_text(active_entry, ""); command_history_clear_pos(active_win); |