mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 22:18:33 +00:00
chore: improve lua keymaps internal representation scheme
This commit is contained in:
@@ -2679,8 +2679,7 @@ void set_maparg_lhs_rhs(const char_u *orig_lhs, const size_t orig_lhs_len,
|
|||||||
mapargs->orig_rhs_len = 0;
|
mapargs->orig_rhs_len = 0;
|
||||||
// stores <lua>ref_no<cr> in map_str
|
// stores <lua>ref_no<cr> in map_str
|
||||||
mapargs->rhs_len = (size_t)vim_snprintf(S_LEN(tmp_buf), "%c%c%c%d\r", K_SPECIAL,
|
mapargs->rhs_len = (size_t)vim_snprintf(S_LEN(tmp_buf), "%c%c%c%d\r", K_SPECIAL,
|
||||||
(char_u)KEY2TERMCAP0(K_LUA), KEY2TERMCAP1(K_LUA),
|
(char_u)KS_EXTRA, KE_LUA, rhs_lua);
|
||||||
rhs_lua);
|
|
||||||
mapargs->rhs = vim_strsave((char_u *)tmp_buf);
|
mapargs->rhs = vim_strsave((char_u *)tmp_buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user