From 64d6d61f49c8400e61c3db0b3e31705776d63232 Mon Sep 17 00:00:00 2001 From: Marijn van Vliet Date: Sun, 15 Nov 2009 15:07:20 +0000 Subject: [PATCH] Empty lines are no longer stored in the input history git-svn-id: http://lassie.dyndns-server.com/svn/gargoyle-gtk@163 ddfedd41-794f-dd11-ae45-00112f111e67 --- libchimara/input.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libchimara/input.c b/libchimara/input.c index d0a037a..c355645 100644 --- a/libchimara/input.c +++ b/libchimara/input.c @@ -562,7 +562,9 @@ finish_text_buffer_line_input(winid_t win, gboolean emit_signal) g_free(win->history->data); win->history = g_list_delete_link(win->history, win->history); } - win->history = g_list_prepend(win->history, g_strdup(inserted_text)); + if(*inserted_text != 0) + win->history = g_list_prepend(win->history, g_strdup(inserted_text)); + win->history_pos = NULL; g_free(inserted_text); -- 2.30.2