Fixed reordering of history if the browser instance is closed (#31).
authorDaniel Carl <danielcarl@gmx.de>
Sun, 2 Jun 2013 17:07:03 +0000 (19:07 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Sun, 2 Jun 2013 17:07:03 +0000 (19:07 +0200)
src/history.c

index 21f2a65..2650f76 100644 (file)
@@ -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);
         }