view src/typemap @ 24396:d406858354a6 v8.2.2738

patch 8.2.2738: extending a list with itself can give wrong result Commit: https://github.com/vim/vim/commit/dcae51facc4d6de1edd62f0242b40972be841103 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 8 20:10:10 2021 +0200 patch 8.2.2738: extending a list with itself can give wrong result Problem: Extending a list with itself can give wrong result. Solution: Remember the item before where the insertion happens and skip to after the already inserted items. (closes #1112)
author Bram Moolenaar <Bram@vim.org>
date Thu, 08 Apr 2021 20: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}\")