view src/typemap @ 24600:cb4cb3ff5736 v8.2.2839

patch 8.2.2839: default redirection missing "ash" and "dash" Commit: https://github.com/vim/vim/commit/56318369750066718b880afa69e7ae3843d0410b Author: Natanael Copa <ncopa@alpinelinux.org> Date: Thu May 6 18:46:35 2021 +0200 patch 8.2.2839: default redirection missing "ash" and "dash" Problem: Default redirection missing "ash" and "dash". Solution: Recognize "ash" and "dash". (Natanael Copa, closes https://github.com/vim/vim/issues/8180)
author Bram Moolenaar <Bram@vim.org>
date Thu, 06 May 2021 19:00: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}\")