summaryrefslogtreecommitdiff
path: root/src/proto
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-11 11:58:19 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-11 11:58:19 +0000
commit19db9e6ba710ca32f0f5e0c2ca2ba69f8228b833 (patch)
tree985829b16070d2e27065d670fcb2ed42a03e160e /src/proto
parent762838218feb223f53ab87d80928dadd991a1746 (diff)
downloadvim-git-19db9e6ba710ca32f0f5e0c2ca2ba69f8228b833.tar.gz
patch 8.2.4059: Vim9: an expression of a map cannot access script-local itemsv8.2.4059
Problem: Vim9: an expression of a map cannot access script-local items. (Maxim Kim) Solution: Use the script ID of where the map was defined.
Diffstat (limited to 'src/proto')
-rw-r--r--src/proto/map.pro2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proto/map.pro b/src/proto/map.pro
index 359262354..42ebd4b61 100644
--- a/src/proto/map.pro
+++ b/src/proto/map.pro
@@ -10,7 +10,7 @@ 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(regmatch_T *regmatch, int *num_file, char_u ***file);
int check_abbr(int c, char_u *ptr, int col, int mincol);
-char_u *eval_map_expr(char_u *str, int c);
+char_u *eval_map_expr(mapblock_T *mp, int c);
char_u *vim_strsave_escape_csi(char_u *p);
void vim_unescape_csi(char_u *p);
int makemap(FILE *fd, buf_T *buf);