view src/typemap @ 26616:d1a60043826c v8.2.3837

patch 8.2.3837: QNX: crash when compiled with GUI but using terminal Commit: https://github.com/vim/vim/commit/d2ff705af32862b4da49d213613233f93343874c Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 17 16:00:04 2021 +0000 patch 8.2.3837: QNX: crash when compiled with GUI but using terminal Problem: QNX: crash when compiled with GUI but using terminal. Solution: Check gui.in_use is set. (Hirohito Higashi, closes https://github.com/vim/vim/issues/9363)
author Bram Moolenaar <Bram@vim.org>
date Fri, 17 Dec 2021 17:15: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}\")