From cc8c970e9f6f13851708ea7ae4cf3318e9a5623b Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Wed, 31 Jul 2013 02:01:34 +0200 Subject: [PATCH] Fixed duplicate history writing. --- src/history.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/history.c b/src/history.c index e7335e3..fd598f2 100644 --- a/src/history.c +++ b/src/history.c @@ -79,8 +79,9 @@ void history_add(HistoryType type, const char *value, const char *additional) if (additional) { util_file_append(file, "%s\t%s\n", value, additional); + } else { + util_file_append(file, "%s\n", value); } - util_file_append(file, "%s\n", value); } /** -- 2.20.1