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
}
/*
diff --git a/src/version.c b/src/version.c
index b658ec7..ec1ba92 100644
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 4111,
+/**/
4110,
/**/
4109,