Mercurial > vim
view src/typemap @ 24388:72f3e40f046c v8.2.2734
patch 8.2.2734: Vim9: cannot use legacy script-local var from :def function
Commit: https://github.com/vim/vim/commit/15e5e53ef29a457126f7c699931ab5842431f2ea
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Apr 7 21:21:13 2021 +0200
patch 8.2.2734: Vim9: cannot use legacy script-local var from :def function
Problem: Vim9: cannot use legacy script-local var from :def function.
Solution: Do not insist on using "s:" prefix. (closes https://github.com/vim/vim/issues/8076)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 07 Apr 2021 21:30:04 +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}\")