view src/typemap @ 30974:013f8436b0d5 v9.0.0822

patch 9.0.0822: crash when dragging the statusline with a mapping Commit: https://github.com/vim/vim/commit/8ab9ca93eea32b318235384720200771863ecaee Author: Bram Moolenaar <Bram@vim.org> Date: Mon Oct 31 13:06:26 2022 +0000 patch 9.0.0822: crash when dragging the statusline with a mapping Problem: Crash when dragging the statusline with a mapping. Solution: Check for valid window pointer. (issue https://github.com/vim/vim/issues/11427)
author Bram Moolenaar <Bram@vim.org>
date Wed, 02 Nov 2022 11:18:52 +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}\")