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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/20220116145913.9B17C1C0519%40moolenaar.net.

Raspunde prin e-mail lui