commit | f61c89d2e698e287a9d04c0a29f4ecc0130c2ea2 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Wed Jan 19 22:51:48 2022 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Wed Jan 19 22:51:48 2022 +0000 |
tree | 81dccba7f2ae6b868dd30b0f14db444b2f3383fb | |
parent | bed34f0a8a4e38a72a080184881bc68254a8cdc6 [diff] [blame] |
patch 8.2.4148: deleting any mapping may cause <ScritpCmd> to fail Problem: Deleting any mapping may cause <ScritpCmd> to not set the script context. Solution: Only reset last_used_map if it is the deleted mapping. (closes #9568)
diff --git a/src/map.c b/src/map.c index f16397a..ff117dc 100644 --- a/src/map.c +++ b/src/map.c
@@ -86,7 +86,7 @@ *mpp = mp->m_next; vim_free(mp); #ifdef FEAT_EVAL - reset_last_used_map(); + reset_last_used_map(mp); #endif }