view src/typemap @ 25599:b85e44974a08 v8.2.3336

patch 8.2.3336: behavior of negative index in list change changed Commit: https://github.com/vim/vim/commit/92f05f21afdb8a43581554a252cb2fc050f9e03b Author: Bram Moolenaar <Bram@vim.org> Date: Thu Aug 12 21:12:56 2021 +0200 patch 8.2.3336: behavior of negative index in list change changed Problem: Behavior of negative index in list change changed. (Naruhiko Nishino) Solution: Only change it for Vim9 script. (closes #8749)
author Bram Moolenaar <Bram@vim.org>
date Thu, 12 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}\")