view src/typemap @ 14806:7cc2d28778ac v8.1.0415

patch 8.1.0415: not actually using 16 colors with vtp commit https://github.com/vim/vim/commit/d4f73438bb6c88a0d3e315f0eebef30993b5921c Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 21 12:24:12 2018 +0200 patch 8.1.0415: not actually using 16 colors with vtp Problem: Not actually using 16 colors with vtp. Solution: Always use 256 colors when vtp is used. (Nobuhiro Takasaki, closes #3432)
author Christian Brabandt <cb@256bit.org>
date Fri, 21 Sep 2018 12:30:06 +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}\")