From f0e32f46c8768fd142f247ff026f45616d593c31 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Sun, 2 Jun 2013 19:07:03 +0200 Subject: [PATCH] Fixed reordering of history if the browser instance is closed (#31). --- src/history.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.20.1