From: Daniel Carl <danielcarl@gmx.de>
Date: Wed, 31 Jul 2013 00:01:34 +0000 (+0200)
Subject: Fixed duplicate history writing.
X-Git-Url: https://git.owens.tech/projects.html/projects.html/git?a=commitdiff_plain;h=cc8c970e9f6f13851708ea7ae4cf3318e9a5623b;p=vimb.git

Fixed duplicate history writing.
---

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);
 }
 
 /**