comparison src/ex_cmds.c @ 2311:ccda151dde4e vim73

Support completion for ":find". (Nazri Ramliy) Cleanup white space.
author Bram Moolenaar <bram@vim.org>
date Wed, 14 Jul 2010 16:52:17 +0200
parents 22529abcd646
children a3aca345aafa
comparison
equal deleted inserted replaced
2310:3e4574a4b627 2311:ccda151dde4e
3097 * ECMD_SET_HELP: set b_help flag of (new) buffer before opening file 3097 * ECMD_SET_HELP: set b_help flag of (new) buffer before opening file
3098 * ECMD_OLDBUF: use existing buffer if it exists 3098 * ECMD_OLDBUF: use existing buffer if it exists
3099 * ECMD_FORCEIT: ! used for Ex command 3099 * ECMD_FORCEIT: ! used for Ex command
3100 * ECMD_ADDBUF: don't edit, just add to buffer list 3100 * ECMD_ADDBUF: don't edit, just add to buffer list
3101 * oldwin: Should be "curwin" when editing a new buffer in the current 3101 * oldwin: Should be "curwin" when editing a new buffer in the current
3102 * window, NULL when splitting the window first. When not NULL info 3102 * window, NULL when splitting the window first. When not NULL info
3103 * of the previous buffer for "oldwin" is stored. 3103 * of the previous buffer for "oldwin" is stored.
3104 * 3104 *
3105 * return FAIL for failure, OK otherwise 3105 * return FAIL for failure, OK otherwise
3106 */ 3106 */
3107 int 3107 int
3108 do_ecmd(fnum, ffname, sfname, eap, newlnum, flags, oldwin) 3108 do_ecmd(fnum, ffname, sfname, eap, newlnum, flags, oldwin)
7230 return; 7230 return;
7231 7231
7232 cmd_idx = sign_cmd_idx(arg, end_subcmd); 7232 cmd_idx = sign_cmd_idx(arg, end_subcmd);
7233 7233
7234 /* :sign {subcmd} {subcmd_args} 7234 /* :sign {subcmd} {subcmd_args}
7235 * | 7235 * |
7236 * begin_subcmd_args */ 7236 * begin_subcmd_args */
7237 begin_subcmd_args = skipwhite(end_subcmd); 7237 begin_subcmd_args = skipwhite(end_subcmd);
7238 p = skiptowhite(begin_subcmd_args); 7238 p = skiptowhite(begin_subcmd_args);
7239 if (*p == NUL) 7239 if (*p == NUL)
7240 { 7240 {
7241 /* 7241 /*
7259 } 7259 }
7260 7260
7261 /* expand last argument of subcmd */ 7261 /* expand last argument of subcmd */
7262 7262
7263 /* :sign define {name} {args}... 7263 /* :sign define {name} {args}...
7264 * | 7264 * |
7265 * p */ 7265 * p */
7266 7266
7267 /* Loop until reaching last argument. */ 7267 /* Loop until reaching last argument. */
7268 do 7268 do
7269 { 7269 {
7270 p = skipwhite(p); 7270 p = skipwhite(p);
7273 } while (*p != NUL); 7273 } while (*p != NUL);
7274 7274
7275 p = vim_strchr(last, '='); 7275 p = vim_strchr(last, '=');
7276 7276
7277 /* :sign define {name} {args}... {last}= 7277 /* :sign define {name} {args}... {last}=
7278 * | | 7278 * | |
7279 * last p */ 7279 * last p */
7280 if (p == NUL) 7280 if (p == NUL)
7281 { 7281 {
7282 /* Expand last argument name (before equal sign). */ 7282 /* Expand last argument name (before equal sign). */
7283 xp->xp_pattern = last; 7283 xp->xp_pattern = last;
7284 switch (cmd_idx) 7284 switch (cmd_idx)