view src/typemap @ 22750:f945413264d7 v8.2.1923

patch 8.2.1923: Vim9: "filter" command modifier doesn't work Commit: https://github.com/vim/vim/commit/4f6b6ed208a15552f0eb7f27b7ca945f59f22c1d Author: Bram Moolenaar <Bram@vim.org> Date: Thu Oct 29 20:24:34 2020 +0100 patch 8.2.1923: Vim9: "filter" command modifier doesn't work Problem: Vim9: "filter" command modifier doesn't work. Solution: Check for space on char before argument. (closes https://github.com/vim/vim/issues/7216, closes #7222)
author Bram Moolenaar <Bram@vim.org>
date Thu, 29 Oct 2020 20:30: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}\")