view src/typemap @ 26763:9cb27a68a01b v8.2.3910

patch 8.2.3910: when compare function of sort() fails it does not abort Commit: https://github.com/vim/vim/commit/23018f2d4b6f85512af117d346eee9b14a4637a6 Author: Bram Moolenaar <Bram@vim.org> Date: Mon Dec 27 11:54:37 2021 +0000 patch 8.2.3910: when compare function of sort() fails it does not abort Problem: When the compare function of sort() produces and error then sort() does not abort. Solution: Check if did_emsg was incremented.
author Bram Moolenaar <Bram@vim.org>
date Mon, 27 Dec 2021 13: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}\")