diff src/misc1.c @ 14286:95030c543411 v8.1.0159

patch 8.1.0159: completion for user names does not work for a prefix. commit https://github.com/vim/vim/commit/6c5d1043022520512ee36aa1a29662b60af33c95 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 7 16:41:13 2018 +0200 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)
author Christian Brabandt <cb@256bit.org>
date Sat, 07 Jul 2018 16:45:05 +0200
parents 2ad722003b36
children c62601adad69
line wrap: on
line diff
--- 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);