diff options
author | Bram Moolenaar <Bram@vim.org> | 2007-07-07 11:58:28 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2007-07-07 11:58:28 +0000 |
commit | bf4441798722b0eaf9010b6f5f37bdb0cd320404 (patch) | |
tree | 9f52ec3a98af84c4568324800a1dd3cadadc07d3 /src/digraph.c | |
parent | e2a49d8e5e31e85d7a227eb2747ede63b9c6f85d (diff) | |
download | vim-git-bf4441798722b0eaf9010b6f5f37bdb0cd320404.tar.gz |
updated for version 7.1-022v7.1.022
Diffstat (limited to 'src/digraph.c')
-rw-r--r-- | src/digraph.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/digraph.c b/src/digraph.c index 79960f7b3..e557680ec 100644 --- a/src/digraph.c +++ b/src/digraph.c @@ -2349,8 +2349,10 @@ keymap_init() if (*curbuf->b_p_keymap == NUL) { - /* Stop any active keymap and clear the table. */ + /* Stop any active keymap and clear the table. Also remove + * b:keymap_unload, as no keymap is active now. */ keymap_unload(); + do_cmdline_cmd((char_u *)"unlet! b:keymap_name"); } else { @@ -2500,7 +2502,6 @@ keymap_unload() ga_clear(&curbuf->b_kmap_ga); curbuf->b_kmap_state &= ~KEYMAP_LOADED; - do_cmdline_cmd((char_u *)"unlet! b:keymap_name"); #ifdef FEAT_WINDOWS status_redraw_curbuf(); #endif |