Patch 8.2.2380
Problem:    Vim9: occasional crash when using try/catch and a timer.
Solution:   Save and restore "need_rethrow" when invoking a timer callback.
            (closes #7708)
Files:      src/time.c


*** ../vim-8.2.2379/src/time.c  2020-11-05 20:50:45.331984998 +0100
--- src/time.c  2021-01-20 22:17:31.136326924 +0100
***************
*** 478,483 ****
--- 478,484 ----
            int save_must_redraw = must_redraw;
            int save_trylevel = trylevel;
            int save_did_throw = did_throw;
+           int save_need_rethrow = need_rethrow;
            int save_ex_pressedreturn = get_pressedreturn();
            int save_may_garbage_collect = may_garbage_collect;
            except_T *save_current_exception = current_exception;
***************
*** 493,498 ****
--- 494,500 ----
            must_redraw = 0;
            trylevel = 0;
            did_throw = FALSE;
+           need_rethrow = FALSE;
            current_exception = NULL;
            may_garbage_collect = FALSE;
            save_vimvars(&vvsave);
***************
*** 513,518 ****
--- 515,521 ----
            called_emsg = save_called_emsg;
            trylevel = save_trylevel;
            did_throw = save_did_throw;
+           need_rethrow = save_need_rethrow;
            current_exception = save_current_exception;
            restore_vimvars(&vvsave);
            if (must_redraw != 0)
*** ../vim-8.2.2379/src/version.c       2021-01-20 21:42:30.237556832 +0100
--- src/version.c       2021-01-20 22:22:31.568259268 +0100
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2380,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
193. You ask your girlfriend to drive home so you can sit back with
     your PDA and download the information to your laptop

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            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/202101202123.10KLNLbx1691186%40masaka.moolenaar.net.

Raspunde prin e-mail lui