From 401fd0c554ddd2de5af1e08a631e2529d33e0302 Mon Sep 17 00:00:00 2001 From: Daniel Carl Date: Sat, 13 Jul 2013 00:38:23 +0200 Subject: [PATCH] Sort bookmark completion. For the bookmarks the sorting by the occurrence in bookmark file makes no sense and is sometimes irritating. --- src/completion.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/completion.c b/src/completion.c index 99321ef..db518da 100644 --- a/src/completion.c +++ b/src/completion.c @@ -83,7 +83,7 @@ gboolean completion_complete(gboolean back) } else if (type == VB_INPUT_OPEN || type == VB_INPUT_TABOPEN) { /* if search string begins with TAG_INDICATOR lookup the bookmarks */ if (suffix && *suffix == TAG_INDICATOR) { - source = bookmark_get_by_tags(suffix + 1); + source = g_list_sort(bookmark_get_by_tags(suffix + 1), (GCompareFunc)g_strcmp0); } else { source = history_get_by_tags(HISTORY_URL, suffix); } -- 2.20.1