Mercurial > vim
view src/typemap @ 23677:94409ebb33f1 v8.2.2380
patch 8.2.2380: Vim9: occasional crash when using try/catch and a timer
Commit: https://github.com/vim/vim/commit/a0f7f73ebb3ab032af08699c24c465403512b7d8
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jan 20 22:22:49 2021 +0100
patch 8.2.2380: Vim9: occasional crash when using try/catch and a timer
Problem: Vim9: occasional crash when using try/catch and a timer.
Solution: Save and restore "need_rethrow" when invoking a timer callback.
(closes #7708)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 20 Jan 2021 22:30:04 +0100 |
parents | dec4338a7da2 |
children |
line wrap: on
line source
TYPEMAP VIWIN T_VIOBJNOMUNGE VIBUF T_VIOBJNOMUNGE INPUT T_VIOBJNOMUNGE if (sv_isa($arg, \"${ntype}\")) { IV tmp = SvIV((SV*)SvRV($arg)); $var = INT2PTR($type, tmp); if (!tmp) croak(\"$ntype no longer exists\"); } else croak(\"$var is not of type ${ntype}\")