diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-11-09 15:17:53 +0800 |
---|---|---|
committer | zeertzjq <zeertzjq@outlook.com> | 2023-11-09 21:34:02 +0800 |
commit | a4b80c71eae09a5f6f76bce46be46efd247c7223 (patch) | |
tree | db275a3fd8a09de50c87f986e357a3951da445e7 /src/nvim/mapping.c | |
parent | 610f50ddaff260e2e2f7236f6a3982ee7554c2a6 (diff) | |
download | rneovim-a4b80c71eae09a5f6f76bce46be46efd247c7223.tar.gz rneovim-a4b80c71eae09a5f6f76bce46be46efd247c7223.tar.bz2 rneovim-a4b80c71eae09a5f6f76bce46be46efd247c7223.zip |
vim-patch:8.2.4140: maparg() does not indicate the type of script
Problem: maparg() does not indicate the type of script where it was defined.
Solution: Add "scriptversion".
https://github.com/vim/vim/commit/a9528b39a666dbaa026320f73bae4b1628a7fe51
Co-authored-by: Bram Moolenaar <Bram@vim.org>
Diffstat (limited to 'src/nvim/mapping.c')
-rw-r--r-- | src/nvim/mapping.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/mapping.c b/src/nvim/mapping.c index 4435e91993..6786b5efe9 100644 --- a/src/nvim/mapping.c +++ b/src/nvim/mapping.c @@ -2113,6 +2113,7 @@ static Dictionary mapblock_fill_dict(const mapblock_T *const mp, const char *lhs PUT(dict, "expr", INTEGER_OBJ(mp->m_expr ? 1 : 0)); PUT(dict, "silent", INTEGER_OBJ(mp->m_silent ? 1 : 0)); PUT(dict, "sid", INTEGER_OBJ(mp->m_script_ctx.sc_sid)); + PUT(dict, "scriptversion", INTEGER_OBJ(1)); PUT(dict, "lnum", INTEGER_OBJ(mp->m_script_ctx.sc_lnum)); PUT(dict, "buffer", INTEGER_OBJ(buffer_value)); PUT(dict, "nowait", INTEGER_OBJ(mp->m_nowait ? 1 : 0)); |