forked from aniani/vim
patch 8.2.4903: cannot get the current cmdline completion type and position
Problem: Cannot get the current cmdline completion type and position.
Solution: Add getcmdcompltype() and getcmdscreenpos(). (Shougo Matsushita,
closes #10344)
This commit is contained in:
committed by
Bram Moolenaar
parent
c27747e6dd
commit
79d599b877
@@ -13,6 +13,7 @@ int showmatches(expand_T *xp, int wildmenu);
|
||||
char_u *sm_gettail(char_u *s);
|
||||
char_u *addstar(char_u *fname, int len, int context);
|
||||
void set_cmd_context(expand_T *xp, char_u *str, int len, int col, int use_ccline);
|
||||
void set_expand_context(expand_T *xp);
|
||||
int expand_cmdline(expand_T *xp, char_u *str, int col, int *matchcount, char_u ***matches);
|
||||
void globpath(char_u *path, char_u *file, garray_T *ga, int expand_options);
|
||||
int wildmenu_translate_key(cmdline_info_T *cclp, int key, expand_T *xp, int did_wild_list);
|
||||
|
||||
@@ -30,9 +30,11 @@ char_u *vim_strsave_fnameescape(char_u *fname, int what);
|
||||
void escape_fname(char_u **pp);
|
||||
void tilde_replace(char_u *orig_pat, int num_files, char_u **files);
|
||||
cmdline_info_T *get_cmdline_info(void);
|
||||
void f_getcmdcompltype(typval_T *argvars, typval_T *rettv);
|
||||
void f_getcmdline(typval_T *argvars, typval_T *rettv);
|
||||
void f_getcmdpos(typval_T *argvars, typval_T *rettv);
|
||||
void f_setcmdpos(typval_T *argvars, typval_T *rettv);
|
||||
void f_getcmdscreenpos(typval_T *argvars, typval_T *rettv);
|
||||
void f_getcmdtype(typval_T *argvars, typval_T *rettv);
|
||||
int get_cmdline_firstc(void);
|
||||
int get_list_range(char_u **str, int *num1, int *num2);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* usercmd.c */
|
||||
char_u *find_ucmd(exarg_T *eap, char_u *p, int *full, expand_T *xp, int *complp);
|
||||
char_u *set_context_in_user_cmdarg(char_u *cmd, char_u *arg, long argt, int context, expand_T *xp, int forceit);
|
||||
char_u *set_context_in_user_cmd(expand_T *xp, char_u *arg_in);
|
||||
char_u *set_context_in_user_cmdarg(char_u *cmd, char_u *arg, long argt, int context, expand_T *xp, int forceit);
|
||||
char_u *expand_user_command_name(int idx);
|
||||
char_u *get_user_commands(expand_T *xp, int idx);
|
||||
char_u *get_user_command_name(int idx, int cmdidx);
|
||||
@@ -9,6 +9,7 @@ char_u *get_user_cmd_addr_type(expand_T *xp, int idx);
|
||||
char_u *get_user_cmd_flags(expand_T *xp, int idx);
|
||||
char_u *get_user_cmd_nargs(expand_T *xp, int idx);
|
||||
char_u *get_user_cmd_complete(expand_T *xp, int idx);
|
||||
char_u *cmdcomplete_type_to_str(int expand);
|
||||
int cmdcomplete_str_to_type(char_u *complete_str);
|
||||
char *uc_fun_cmd(void);
|
||||
int parse_compl_arg(char_u *value, int vallen, int *complp, long *argt, char_u **compl_arg);
|
||||
|
||||
Reference in New Issue
Block a user