From: Marijn van Vliet Date: Sun, 15 Nov 2009 15:07:20 +0000 (+0000) Subject: Empty lines are no longer stored in the input history X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=64d6d61f49c8400e61c3db0b3e31705776d63232;p=rodin%2Fchimara.git 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 --- 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);