Patch 8.2.4111
Problem: Potential proglem when map is deleted while executing.
Solution: Reset last used map pointer when deleting a mapping.
Files: src/map.c
*** ../vim-8.2.4110/src/map.c 2022-01-11 11:58:14.920745981 +0000
--- src/map.c 2022-01-15 17:42:51.107996382 +0000
***************
*** 85,90 ****
--- 85,93 ----
vim_free(mp->m_orig_str);
*mpp = mp->m_next;
vim_free(mp);
+ #ifdef FEAT_EVAL
+ reset_last_used_map();
+ #endif
}
/*
*** ../vim-8.2.4110/src/version.c 2022-01-16 14:51:26.434049441 +0000
--- src/version.c 2022-01-16 14:58:21.536609404 +0000
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 4111,
/**/
--
DEAD PERSON: I'm getting better!
CUSTOMER: No, you're not -- you'll be stone dead in a moment.
MORTICIAN: Oh, I can't take him like that -- it's against regulations.
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///