From d94c6a9caca0a13a677202bb45eccaceb0196fd0 Mon Sep 17 00:00:00 2001 From: Sebastian Ramacher Date: Wed, 12 Oct 2011 14:40:52 +0200 Subject: [PATCH] display a sorted list of bookmarks --- completion.c | 1 + 1 file changed, 1 insertion(+) diff --git a/completion.c b/completion.c index 58534f7..768cd1c 100644 --- a/completion.c +++ b/completion.c @@ -159,6 +159,7 @@ cc_bookmarks(girara_session_t* session, const char* input) } const size_t input_length = input ? strlen(input) : 0; + girara_list_sort(zathura->bookmarks.bookmarks, (girara_compare_function_t) g_strcmp0); GIRARA_LIST_FOREACH(zathura->bookmarks.bookmarks, zathura_bookmark_t*, iter, bookmark) if (input_length <= strlen(bookmark->id) && !strncmp(input, bookmark->id, input_length)) {