Mercurial > vim
view src/typemap @ 25481:a975e2b7ea31 v8.2.3277
patch 8.2.3277: Vim9: compiled has() does not work properly
Commit: https://github.com/vim/vim/commit/c3160727b940b762e18fd9431416dc1a4a081c3a
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Aug 2 21:12:05 2021 +0200
patch 8.2.3277: Vim9: compiled has() does not work properly
Problem: Vim9: compiled has() does not work properly.
Solution: Fix check for has() vs exists().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 02 Aug 2021 21:15:03 +0200 |
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}\")