view src/typemap @ 11874:d444e087b8fd v8.0.0817

patch 8.0.0817: cannot get the terminal line at the cursor commit https://github.com/vim/vim/commit/22aad2f8806acf390568b8e524e53260a322aaa5 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 30 18:19:46 2017 +0200 patch 8.0.0817: cannot get the terminal line at the cursor Problem: Cannot get the line of a terminal window at the cursor. Solution: Make the row argunt optionsl. (Yasuhiro Matsumoto, closes https://github.com/vim/vim/issues/1898)
author Christian Brabandt <cb@256bit.org>
date Sun, 30 Jul 2017 18:30: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}\")