view src/typemap @ 32282:e47739c49487 v9.0.1472

patch 9.0.1472: ":drop fname" may change the last used tab page Commit: https://github.com/vim/vim/commit/8281a16efc76197f7b0b2a385dffb44fce66d33e Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 20 18:07:57 2023 +0100 patch 9.0.1472: ":drop fname" may change the last used tab page Problem: ":drop fname" may change the last used tab page. Solution: Restore the last used tab page when :drop has changed it. (closes #12087)
author Bram Moolenaar <Bram@vim.org>
date Thu, 20 Apr 2023 19:15:04 +0200
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}\")