Merge #5658 'Apply :lmap in macros'

This commit is contained in:
Justin M. Keyes
2018-05-17 02:13:31 +02:00
committed by GitHub
7 changed files with 292 additions and 11 deletions

View File

@@ -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;