view src/typemap @ 30237:722cd5d0f92a v9.0.0454

patch 9.0.0454: incorrect color for modeless selection with GTK Commit: https://github.com/vim/vim/commit/810cb5a3bf73ff4b084f483aa87cd49c1111bfa9 Author: Your Name <you@example.com> Date: Tue Sep 13 11:25:54 2022 +0100 patch 9.0.0454: incorrect color for modeless selection with GTK Problem: Incorrect color for modeless selection with GTK. Solution: Use simple inversion instead of XOR. (closes https://github.com/vim/vim/issues/11111)
author Bram Moolenaar <Bram@vim.org>
date Tue, 13 Sep 2022 12: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}\")