commit | d648c01f2f3798a5c75422aa83211928ad783128 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sun Jan 16 14:58:34 2022 +0000 |
committer | Bram Moolenaar <Bram@vim.org> | Sun Jan 16 14:58:34 2022 +0000 |
tree | 6b438c1a7cbc78338227c62f5e353ac3ec9e5349 | |
parent | 8f9956994d5c75ed88d6b2881b6ac0bb62a0d6af [diff] [blame] |
patch 8.2.4111: potential proglem when map is deleted while executing Problem: Potential proglem when map is deleted while executing. Solution: Reset last used map pointer when deleting a mapping.
diff --git a/src/map.c b/src/map.c index 181aa65..6ad938d 100644 --- a/src/map.c +++ b/src/map.c
@@ -85,6 +85,9 @@ vim_free(mp->m_orig_str); *mpp = mp->m_next; vim_free(mp); +#ifdef FEAT_EVAL + reset_last_used_map(); +#endif } /*