view src/typemap @ 23628:b26bbc03126a v8.2.2356

patch 8.2.2356: Vim9: ":put =expr" does not handle a list properly Commit: https://github.com/vim/vim/commit/883cf97f109d2ff281cf77f7b2e3bb44aced7cb3 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jan 15 18:04:43 2021 +0100 patch 8.2.2356: Vim9: ":put =expr" does not handle a list properly Problem: Vim9: ":put =expr" does not handle a list properly. Solution: Use the same logic as eval_to_string_eap(). (closes https://github.com/vim/vim/issues/7684)
author Bram Moolenaar <Bram@vim.org>
date Fri, 15 Jan 2021 18:15:05 +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}\")