view src/typemap @ 31792:5369ce341633 v9.0.1228

patch 9.0.1228: fuzzy menu completion is only tested in the GUI Commit: https://github.com/vim/vim/commit/145a6afe3a4be54689af5233710c85346ba1e5da Author: zeertzjq <zeertzjq@outlook.com> Date: Sun Jan 22 12:41:55 2023 +0000 patch 9.0.1228: fuzzy menu completion is only tested in the GUI Problem: Fuzzy menu completion is only tested in the GUI. Solution: Make fuzzy menu completion test work without GUI. (closes #11861)
author Bram Moolenaar <Bram@vim.org>
date Sun, 22 Jan 2023 13:45: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}\")