view src/typemap @ 18667:de350001150c v8.1.2325

patch 8.1.2325: crash when using balloon with empty line Commit: https://github.com/vim/vim/commit/9ae862ebba4a8962cb1c6811a2a46656fa672599 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 21 13:27:06 2019 +0100 patch 8.1.2325: crash when using balloon with empty line Problem: Crash when using balloon with empty line. Solution: Handle empty lines. (Markus Braun)
author Bram Moolenaar <Bram@vim.org>
date Thu, 21 Nov 2019 13:30: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}\")