view src/typemap @ 16485:b870146e09e1 v8.1.1246

patch 8.1.1246: cannot handle negative mouse coordinate from urxvt commit https://github.com/vim/vim/commit/bb7e1b4ba82eaa6f8c7a59f1314056e3c404437a Author: Bram Moolenaar <Bram@vim.org> Date: Thu May 2 20:24:12 2019 +0200 patch 8.1.1246: cannot handle negative mouse coordinate from urxvt Problem: Cannot handle negative mouse coordinate from urxvt. Solution: Accept '-' where a digit is expected. (Vincent Vinel, closes #4326)
author Bram Moolenaar <Bram@vim.org>
date Thu, 02 May 2019 20:30:07 +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}\")