1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2022-01-16 14:58:34 +00:00
parent 8f9956994d
commit d648c01f2f
2 changed files with 5 additions and 0 deletions

View File

@@ -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
}
/*

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4111,
/**/
4110,
/**/