Mercurial > vim
view src/typemap @ 23094:8b93aea8d9d7 v8.2.2093
patch 8.2.2093: Vim9: script test sometimes fails
Commit: https://github.com/vim/vim/commit/c0913d023b8bb728e9832727fe1657dbddf685d0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Dec 5 14:44:37 2020 +0100
patch 8.2.2093: Vim9: script test sometimes fails
Problem: Vim9: script test sometimes fails.
Solution: Do not find a script variable by its typval if the name was
cleared.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 05 Dec 2020 14:45:03 +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}\")