view src/typemap @ 18237:d0dfb3b0fe31 v8.1.2113

patch 8.1.2113: ":help expr-!~?" only works after searching Commit: https://github.com/vim/vim/commit/9ca250855b55f4d3292b010525c827dc6992cb61 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 5 11:30:09 2019 +0200 patch 8.1.2113: ":help expr-!~?" only works after searching Problem: ":help expr-!~?" only works after searching. Solution: Escape "~" after "expr-". (closes https://github.com/vim/vim/issues/5015)
author Bram Moolenaar <Bram@vim.org>
date Sat, 05 Oct 2019 11:45: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}\")