diff options
author | Ernie Rael <errael@raelity.com> | 2022-04-25 14:40:44 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-04-25 14:40:44 +0100 |
commit | 09661203ecefbee6a6f09438afcff1843e9dbfb4 (patch) | |
tree | e9287958ff8d1d65e4c5a66703cd9f1d16c237fb /src/proto | |
parent | 23d5770ef5e2f5c6d20d123303b81327045e5a1e (diff) | |
download | vim-git-09661203ecefbee6a6f09438afcff1843e9dbfb4.tar.gz |
patch 8.2.4825: can only get a list of mappingsv8.2.4825
Problem: Can only get a list of mappings.
Solution: Add the optional {abbr} argument. (Ernie Rael, closes #10277)
Rename to maplist(). Rename test file.
Diffstat (limited to 'src/proto')
-rw-r--r-- | src/proto/map.pro | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/proto/map.pro b/src/proto/map.pro index 88e61bd5e..f92339f7d 100644 --- a/src/proto/map.pro +++ b/src/proto/map.pro @@ -8,7 +8,7 @@ int mode_str2flags(char_u *modechars); int map_to_exists(char_u *str, char_u *modechars, int abbr); int map_to_exists_mode(char_u *rhs, int mode, int abbr); char_u *set_context_in_map_cmd(expand_T *xp, char_u *cmd, char_u *arg, int forceit, int isabbrev, int isunmap, cmdidx_T cmdidx); -int ExpandMappings(char_u *pat, regmatch_T *regmatch, int *num_file, char_u ***file); +int ExpandMappings(char_u *pat, regmatch_T *regmatch, int *numMatches, char_u ***matches); int check_abbr(int c, char_u *ptr, int col, int mincol); char_u *eval_map_expr(mapblock_T *mp, int c); char_u *vim_strsave_escape_csi(char_u *p); @@ -17,7 +17,7 @@ int makemap(FILE *fd, buf_T *buf); int put_escstr(FILE *fd, char_u *strstart, int what); void check_map_keycodes(void); char_u *check_map(char_u *keys, int mode, int exact, int ign_mod, int abbr, mapblock_T **mp_ptr, int *local_ptr); -void f_getmappings(typval_T *argvars, typval_T *rettv); +void f_maplist(typval_T *argvars, typval_T *rettv); void f_maparg(typval_T *argvars, typval_T *rettv); void f_mapcheck(typval_T *argvars, typval_T *rettv); void f_mapset(typval_T *argvars, typval_T *rettv); |