From: Daniel Carl Date: Mon, 27 Feb 2017 21:58:24 +0000 (+0100) Subject: Don't sort url history completion list. X-Git-Url: https://git.owens.tech/assets/wrapped.html/assets/wrapped.html/git?a=commitdiff_plain;h=fdb7d1fda3e34590c86579a635da1deafed32307;p=vimb.git Don't sort url history completion list. Also made sorting the default be cause it's less code. --- diff --git a/src/ex.c b/src/ex.c index 7f77950..c3acc0a 100644 --- a/src/ex.c +++ b/src/ex.c @@ -1093,31 +1093,27 @@ static gboolean complete(Client *c, short direction) case EX_OPEN: case EX_TABOPEN: /* TODO add bookmark completion if *token == '!' */ + sort = FALSE; found = history_fill_completion(store, HISTORY_URL, token); break; case EX_SET: - sort = TRUE; found = setting_fill_completion(c, store, token); break; case EX_BMA: - sort = TRUE; /* TODO fill bookmark completion */ break; case EX_SCR: - sort = TRUE; /* TODO fill shortcut completion */ break; case EX_HANDREM: - sort = TRUE; /* TODO fill handler completion */ break; case EX_SAVE: - sort = TRUE; found = util_filename_fill_completion(c, store, token); break; @@ -1136,7 +1132,6 @@ static gboolean complete(Client *c, short direction) if (ex_fill_completion(store, in)) { OVERWRITE_STRING(excomp.prefix, ":"); found = TRUE; - sort = FALSE; } } free_cmdarg(arg); @@ -1145,6 +1140,7 @@ static gboolean complete(Client *c, short direction) OVERWRITE_STRING(excomp.token, in + 1); OVERWRITE_NSTRING(excomp.prefix, in, 1); found = TRUE; + sort = FALSE; } }