view src/typemap @ 30641:1207b6d6cf9e v9.0.0655

patch 9.0.0655: passing modifier codes to a shell running in the GUI Commit: https://github.com/vim/vim/commit/2f7e1b8b40dbc97752b8b816560f752f16e0207a Author: Bram Moolenaar <Bram@vim.org> Date: Tue Oct 4 13:17:31 2022 +0100 patch 9.0.0655: passing modifier codes to a shell running in the GUI Problem: passing modifier codes to a shell running in the GUI. (Gary Johnson) Solution: Include modifier codes into the key and drop the modifiers.
author Bram Moolenaar <Bram@vim.org>
date Tue, 04 Oct 2022 14:30:05 +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}\")