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 -- Br...@Moolenaar.net --
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 ///