view src/typemap @ 22764:d03221aa54f3 v8.2.1930

patch 8.2.1930: wrong input if removing shift results in special key code Commit: https://github.com/vim/vim/commit/749bc9521d9c1b3b3250faef25a3710206cf277d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 31 16:33:47 2020 +0100 patch 8.2.1930: wrong input if removing shift results in special key code Problem: Wrong input if removing shift results in special key code. Solution: Handle special key codes. (closes https://github.com/vim/vim/issues/7189)
author Bram Moolenaar <Bram@vim.org>
date Sat, 31 Oct 2020 16:45:03 +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}\")