view src/typemap @ 15363:45f36b66a032 v8.1.0689

patch 8.1.0689: undo with text properties not tested commit https://github.com/vim/vim/commit/7f1664e392388fd38c8b154389167ad1bdedff66 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 4 17:21:24 2019 +0100 patch 8.1.0689: undo with text properties not tested Problem: Undo with text properties not tested. Solution: Add a test function.
author Bram Moolenaar <Bram@vim.org>
date Fri, 04 Jan 2019 17:30:06 +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}\")