view src/typemap @ 19007:0883a37ccf84 v8.2.0064

patch 8.2.0064: diffmode completion doesn't use per-window setting Commit: https://github.com/vim/vim/commit/efcc329020ef089267f5f3994b8544eb58806311 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 30 21:59:03 2019 +0100 patch 8.2.0064: diffmode completion doesn't use per-window setting Problem: Diffmode completion doesn't use per-window setting. Solution: Check if a window is in diff mode. (Dominique Pell, closes https://github.com/vim/vim/issues/5419)
author Bram Moolenaar <Bram@vim.org>
date Mon, 30 Dec 2019 22:00:04 +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}\")