view src/typemap @ 12582:97f0c74976c6 v8.0.1169

patch 8.0.1169: highlignting one char too many with 'list' and 'cul' commit https://github.com/vim/vim/commit/5ece3e359c4b96d0f9bf1ce690223545f40f34b8 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 1 14:35:02 2017 +0200 patch 8.0.1169: highlignting one char too many with 'list' and 'cul' Problem: Highlignting one char too many with 'list' and 'cul'. Solution: Check for 'list' being active. (Ozaki Kiichi, closes https://github.com/vim/vim/issues/2177)
author Christian Brabandt <cb@256bit.org>
date Sun, 01 Oct 2017 14:45: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}\")