# HG changeset patch # User Bram Moolenaar # Date 1642345208 -3600 # Node ID 0bb71ef751bb90eaf2ec63317cfe10c24e1a244c # Parent 5008d16b633b306759c6391c292fba8850f117e9 patch 8.2.4111: potential proglem when map is deleted while executing Commit: https://github.com/vim/vim/commit/d648c01f2f3798a5c75422aa83211928ad783128 Author: Bram Moolenaar Date: Sun Jan 16 14:58:34 2022 +0000 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 --- a/src/map.c +++ b/src/map.c @@ -85,6 +85,9 @@ map_free(mapblock_T **mpp) vim_free(mp->m_orig_str); *mpp = mp->m_next; vim_free(mp); +#ifdef FEAT_EVAL + reset_last_used_map(); +#endif } /* diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4111, +/**/ 4110, /**/ 4109,