Mercurial > vim
diff src/proto/ex_docmd.pro @ 17835:fd6c8dc33152 v8.1.1914
patch 8.1.1914: command line expansion code is spread out
Commit: https://github.com/vim/vim/commit/d019039ccd7cbeae8923db20383a241d7fc77e2c
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Aug 23 21:17:35 2019 +0200
patch 8.1.1914: command line expansion code is spread out
Problem: Command line expansion code is spread out.
Solution: Move set_one_cmd_context(). (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4855)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 23 Aug 2019 21:30:04 +0200 |
parents | 4a3dca734d36 |
children | 527b7084c556 |
line wrap: on
line diff
--- a/src/proto/ex_docmd.pro +++ b/src/proto/ex_docmd.pro @@ -9,11 +9,13 @@ int parse_cmd_address(exarg_T *eap, char int checkforcmd(char_u **pp, char *cmd, int len); int modifier_len(char_u *cmd); int cmd_exists(char_u *name); -char_u *set_one_cmd_context(expand_T *xp, char_u *buff); +cmdidx_T excmd_get_cmdidx(char_u *cmd, int len); +long excmd_get_argt(cmdidx_T idx); char_u *skip_range(char_u *cmd, int *ctx); void ex_ni(exarg_T *eap); int expand_filename(exarg_T *eap, char_u **cmdlinep, char **errormsgp); void separate_nextcmd(exarg_T *eap); +char_u *skip_cmd_arg( char_u *p, int rembs); int get_bad_opt(char_u *p, exarg_T *eap); int ends_excmd(int c); char_u *find_nextcmd(char_u *p); @@ -48,9 +50,6 @@ char_u *expand_sfile(char_u *arg); int put_eol(FILE *fd); int put_line(FILE *fd, char *s); void dialog_msg(char_u *buff, char *format, char_u *fname); -char_u *get_behave_arg(expand_T *xp, int idx); -char_u *get_messages_arg(expand_T *xp, int idx); -char_u *get_mapclear_arg(expand_T *xp, int idx); void set_no_hlsearch(int flag); int is_loclist_cmd(int cmdidx); int get_pressedreturn(void);