diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-05-17 02:13:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-17 02:13:31 +0200 |
commit | 2aa308c6852b7c51caef5dd6dc4e809719ca7a55 (patch) | |
tree | a01a72b5ccd7bc00acb7db74397608a85a4aba95 /src/nvim/digraph.c | |
parent | de7a0bdc35922d4f529bd4b28f992177152d4562 (diff) | |
parent | 9058a5a19a3f62fb156203e0226eaaabb8b8da56 (diff) | |
download | rneovim-2aa308c6852b7c51caef5dd6dc4e809719ca7a55.tar.gz rneovim-2aa308c6852b7c51caef5dd6dc4e809719ca7a55.tar.bz2 rneovim-2aa308c6852b7c51caef5dd6dc4e809719ca7a55.zip |
Merge #5658 'Apply :lmap in macros'
Diffstat (limited to 'src/nvim/digraph.c')
-rw-r--r-- | src/nvim/digraph.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/digraph.c b/src/nvim/digraph.c index 9e475bf66c..6dbb0d05e0 100644 --- a/src/nvim/digraph.c +++ b/src/nvim/digraph.c @@ -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; |