diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-07-07 16:41:13 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-07-07 16:41:13 +0200 |
commit | 6c5d1043022520512ee36aa1a29662b60af33c95 (patch) | |
tree | 05f2a6867642e98c43a591cb2c264fdaf86fe514 /src/misc1.c | |
parent | 1ebff3dc93b6d022ccfe0613c1d1ee2d62fc7935 (diff) | |
download | vim-git-6c5d1043022520512ee36aa1a29662b60af33c95.tar.gz |
patch 8.1.0159: completion for user names does not work for a prefix.v8.1.0159
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)
Diffstat (limited to 'src/misc1.c')
-rw-r--r-- | src/misc1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/misc1.c b/src/misc1.c index 5242ca572..f0e629b5b 100644 --- a/src/misc1.c +++ b/src/misc1.c @@ -4827,7 +4827,8 @@ get_users(expand_T *xp UNUSED, int idx) * 1 if name partially matches the beginning of a user name. * 2 is name fully matches a user name. */ -int match_user(char_u* name) + int +match_user(char_u *name) { int i; int n = (int)STRLEN(name); |