diff options
author | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-17 10:57:07 -0400 |
---|---|---|
committer | Jan Edmund Lazo <janedmundlazo@hotmail.com> | 2018-08-17 17:36:40 -0400 |
commit | f53c95e7a8cbeb6fb523d179ae166a3ace87dbcd (patch) | |
tree | a721efdd7f093a13db8e7ae8e92937a15168cb5b | |
parent | f5b7fd5fa366c752f1a2f0a00cad0e4c4d8b3c20 (diff) | |
download | rneovim-f53c95e7a8cbeb6fb523d179ae166a3ace87dbcd.tar.gz rneovim-f53c95e7a8cbeb6fb523d179ae166a3ace87dbcd.tar.bz2 rneovim-f53c95e7a8cbeb6fb523d179ae166a3ace87dbcd.zip |
vim-patch:8.1.0159: completion for user names does not work for a prefix.
Problem: Completion for user names does not work if a prefix is also a full
matching name. (Nazri Ramliy)
Solution: Accept both full and partial matches. (Dominique Pelle)
https://github.com/vim/vim/commit/6c5d1043022520512ee36aa1a29662b60af33c95
-rw-r--r-- | src/nvim/ex_docmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index 8d0a8f21a7..076e77be6a 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -2978,7 +2978,7 @@ const char * set_one_cmd_context( // A full match ~user<Tab> will be replaced by user's home // directory i.e. something like ~user<Tab> -> /home/user/ if (*p == NUL && p > (const char *)xp->xp_pattern + 1 - && match_user(xp->xp_pattern + 1) == 1) { + && match_user(xp->xp_pattern + 1) >= 1) { xp->xp_context = EXPAND_USER; ++xp->xp_pattern; } |