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