view src/typemap @ 14842:7379bc1c3498 v8.1.0433

patch 8.1.0433: mapping can obtain text from inputsecret() commit https://github.com/vim/vim/commit/31cbadf74bccc2a5cd8233bc31bbcfe466b00021 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 25 20:48:57 2018 +0200 patch 8.1.0433: mapping can obtain text from inputsecret() Problem: Mapping can obtain text from inputsecret(). (Tommy Allen) Solution: Disallow CTRL-R = and CTRL-\ e when using inputsecret().
author Christian Brabandt <cb@256bit.org>
date Tue, 25 Sep 2018 21:00:06 +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}\")