view src/typemap @ 11643:db3ac953b942 v8.0.0704

patch 8.0.0704: problems with autocommands when opening help commit https://github.com/vim/vim/commit/163095f088a7c29710a16c75bb56229dd3b4116a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 9 15:41:53 2017 +0200 patch 8.0.0704: problems with autocommands when opening help Problem: Problems with autocommands when opening help. Solution: Avoid using invalid "varp" value. Allow using :wincmd if buffer is locked. (closes #1806, closes #1804)
author Christian Brabandt <cb@256bit.org>
date Sun, 09 Jul 2017 15:45: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}\")