From: Daniel Carl Date: Fri, 12 Jul 2013 22:38:23 +0000 (+0200) Subject: Sort bookmark completion. X-Git-Url: https://git.owens.tech/editable-focus.html/editable-focus.html/git?a=commitdiff_plain;h=401fd0c554ddd2de5af1e08a631e2529d33e0302;p=vimb.git Sort bookmark completion. For the bookmarks the sorting by the occurrence in bookmark file makes no sense and is sometimes irritating. --- 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); }