From: Daniel Carl <danielcarl@gmx.de>
Date: Sun, 2 Jun 2013 17:07:03 +0000 (+0200)
Subject: Fixed reordering of history if the browser instance is closed (#31).
X-Git-Url: https://git.owens.tech/projects.html/projects.html/git?a=commitdiff_plain;h=f0e32f46c8768fd142f247ff026f45616d593c31;p=vimb.git

Fixed reordering of history if the browser instance is closed (#31).
---

diff --git a/src/history.c b/src/history.c
index 21f2a65..2650f76 100644
--- a/src/history.c
+++ b/src/history.c
@@ -265,7 +265,7 @@ static void write_to_file(GList *list, const char *file)
         file_lock_set(fileno(f), F_WRLCK);
 
         /* overwrite the history file with new unique history items */
-        for (GList *link = g_list_reverse(list); link; link = link->next) {
+        for (GList *link = list; link; link = link->next) {
             fprintf(f, "%s\n", (char*)link->data);
         }