view src/typemap @ 27165:0bb71ef751bb v8.2.4111

patch 8.2.4111: potential proglem when map is deleted while executing Commit: https://github.com/vim/vim/commit/d648c01f2f3798a5c75422aa83211928ad783128 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jan 16 14:58:34 2022 +0000 patch 8.2.4111: potential proglem when map is deleted while executing Problem: Potential proglem when map is deleted while executing. Solution: Reset last used map pointer when deleting a mapping.
author Bram Moolenaar <Bram@vim.org>
date Sun, 16 Jan 2022 16:00:08 +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}\")