Use same sorting or url in tag completion.
authorDaniel Carl <danielcarl@gmx.de>
Mon, 24 Jul 2017 21:30:39 +0000 (23:30 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Mon, 24 Jul 2017 21:30:39 +0000 (23:30 +0200)
Show matching url in case of `bmr tag<Tab>` as for the open command
`:open tag<Tab>` which is none sorting to keep the url in the sort order
they where added to the bookmarks. This means the last added bookmarks
or ordered first in the completion list.

src/ex.c

index 894f249..d6a49de 100644 (file)
--- a/src/ex.c
+++ b/src/ex.c
@@ -1189,7 +1189,7 @@ static gboolean complete(Client *c, short direction)
             switch (arg->code) {
                 case EX_OPEN:
                 case EX_TABOPEN:
-                    sort  = FALSE;
+                    sort = FALSE;
                     if (*token == '!') {
                         found = bookmark_fill_completion(store, token + 1);
                     } else {
@@ -1206,6 +1206,7 @@ static gboolean complete(Client *c, short direction)
                     break;
 
                 case EX_BMR:
+                    sort  = FALSE;
                     found = bookmark_fill_completion(store, token);
                     break;