comparison src/ex_getln.c @ 3744:99f076ca8d84 v7.3.631

updated for version 7.3.631 Problem: Cannot complete user names. Solution: Add user name completion. (Dominique Pelle)
author Bram Moolenaar <bram@vim.org>
date Wed, 15 Aug 2012 14:05:05 +0200
parents 7de7ef01288d
children ba9c9d0c4ff4
comparison
equal deleted inserted replaced
3743:8bfe7f121b55 3744:99f076ca8d84
4334 * eg :call sub^I 4334 * eg :call sub^I
4335 * EXPAND_USER_FUNC Complete user defined function names, eg :delf F^I 4335 * EXPAND_USER_FUNC Complete user defined function names, eg :delf F^I
4336 * EXPAND_EXPRESSION Complete internal or user defined function/variable 4336 * EXPAND_EXPRESSION Complete internal or user defined function/variable
4337 * names in expressions, eg :while s^I 4337 * names in expressions, eg :while s^I
4338 * EXPAND_ENV_VARS Complete environment variable names 4338 * EXPAND_ENV_VARS Complete environment variable names
4339 * EXPAND_USER Complete user names
4339 */ 4340 */
4340 static void 4341 static void
4341 set_expand_context(xp) 4342 set_expand_context(xp)
4342 expand_T *xp; 4343 expand_T *xp;
4343 { 4344 {
4679 && (defined(FEAT_GETTEXT) || defined(FEAT_MBYTE)) 4680 && (defined(FEAT_GETTEXT) || defined(FEAT_MBYTE))
4680 {EXPAND_LANGUAGE, get_lang_arg, TRUE, FALSE}, 4681 {EXPAND_LANGUAGE, get_lang_arg, TRUE, FALSE},
4681 {EXPAND_LOCALES, get_locales, TRUE, FALSE}, 4682 {EXPAND_LOCALES, get_locales, TRUE, FALSE},
4682 #endif 4683 #endif
4683 {EXPAND_ENV_VARS, get_env_name, TRUE, TRUE}, 4684 {EXPAND_ENV_VARS, get_env_name, TRUE, TRUE},
4685 {EXPAND_USER, get_users, TRUE, FALSE},
4684 }; 4686 };
4685 int i; 4687 int i;
4686 4688
4687 /* 4689 /*
4688 * Find a context in the table and call the ExpandGeneric() with the 4690 * Find a context in the table and call the ExpandGeneric() with the