mirror of
https://github.com/neovim/neovim.git
synced 2025-09-16 00:08:19 +00:00
Merge #5658 'Apply :lmap in macros'
This commit is contained in:
@@ -1833,12 +1833,12 @@ void ex_loadkeymap(exarg_T *eap)
|
||||
xfree(line);
|
||||
}
|
||||
|
||||
// setup ":lnoremap" to map the keys
|
||||
for (int i = 0; i < curbuf->b_kmap_ga.ga_len; ++i) {
|
||||
// setup ":lmap" to map the keys
|
||||
for (int i = 0; i < curbuf->b_kmap_ga.ga_len; i++) {
|
||||
vim_snprintf((char *)buf, sizeof(buf), "<buffer> %s %s",
|
||||
((kmap_T *)curbuf->b_kmap_ga.ga_data)[i].from,
|
||||
((kmap_T *)curbuf->b_kmap_ga.ga_data)[i].to);
|
||||
(void)do_map(2, buf, LANGMAP, FALSE);
|
||||
(void)do_map(0, buf, LANGMAP, false);
|
||||
}
|
||||
|
||||
p_cpo = save_cpo;
|
||||
|
Reference in New Issue
Block a user