view src/typemap @ 27130:daac3cf65d7e v8.2.4094

patch 8.2.4094: 'virtualedit' is window-local but using buffer-local enum Commit: https://github.com/vim/vim/commit/e1833bfd01c100896d2a01f281762c285192d84b Author: zeertzjq <zeertzjq@outlook.com> Date: Sat Jan 15 10:52:16 2022 +0000 patch 8.2.4094: 'virtualedit' is window-local but using buffer-local enum Problem: 'virtualedit' is window-local but using buffer-local enum. Solution: Use window-local enum. (closes https://github.com/vim/vim/issues/9529)
author Bram Moolenaar <Bram@vim.org>
date Sat, 15 Jan 2022 12:00: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}\")