mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 23:08:16 +00:00
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".
a9528b39a6
Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user