view src/typemap @ 23893:a433d0070c45 v8.2.2489

patch 8.2.2489: current buffer is wrong after deletebufline() fails Commit: https://github.com/vim/vim/commit/963ffa0a5a6091655ed72b4590ec5d5a1653bce8 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 9 20:02:55 2021 +0100 patch 8.2.2489: current buffer is wrong after deletebufline() fails Problem: current buffer is wrong after deletebufline() fails to delete a line in another buffer. Solution: Restore the current buffer.
author Bram Moolenaar <Bram@vim.org>
date Tue, 09 Feb 2021 20:15: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}\")