diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-19 22:51:48 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-19 22:51:48 +0000 |
commit | f61c89d2e698e287a9d04c0a29f4ecc0130c2ea2 (patch) | |
tree | 81dccba7f2ae6b868dd30b0f14db444b2f3383fb /src/map.c | |
parent | bed34f0a8a4e38a72a080184881bc68254a8cdc6 (diff) | |
download | vim-git-f61c89d2e698e287a9d04c0a29f4ecc0130c2ea2.tar.gz |
patch 8.2.4148: deleting any mapping may cause <ScritpCmd> to failv8.2.4148
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)
Diffstat (limited to 'src/map.c')
-rw-r--r-- | src/map.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -86,7 +86,7 @@ map_free(mapblock_T **mpp) *mpp = mp->m_next; vim_free(mp); #ifdef FEAT_EVAL - reset_last_used_map(); + reset_last_used_map(mp); #endif } |