view src/typemap @ 12994:8566eaa08788 v8.0.1373

patch 8.0.1373: no error when settting 'renderoptions' before starting GUI commit https://github.com/vim/vim/commit/3767c6e9ee1bd585a2afba7e932854b24d194a2d Author: Bram Moolenaar <Bram@vim.org> Date: Tue Dec 5 16:57:56 2017 +0100 patch 8.0.1373: no error when settting 'renderoptions' before starting GUI Problem: No error when settting 'renderoptions' to an invalid value before starting the GUI. Solution: Always check the value. (Ken Takata, closes #2413)
author Christian Brabandt <cb@256bit.org>
date Tue, 05 Dec 2017 17:00:08 +0100
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}\")