view src/typemap @ 31994:096fe1952003 v9.0.1329

patch 9.0.1329: completion of map includes simplified ones Commit: https://github.com/vim/vim/commit/997b8a015cd39141866e953651d55c705275cbd6 Author: zeertzjq <zeertzjq@outlook.com> Date: Sun Feb 19 21:00:31 2023 +0000 patch 9.0.1329: completion of map includes simplified ones Problem: Completion of map includes simplified ones. Solution: Do not complete simplified mappings. (closes https://github.com/vim/vim/issues/12013)
author Bram Moolenaar <Bram@vim.org>
date Sun, 19 Feb 2023 22:15: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}\")