view src/typemap @ 21654:bb0c4325a712 v8.2.1377

patch 8.2.1377: triggering the ATTENTION prompt causes typeahead mess up Commit: https://github.com/vim/vim/commit/b8d732e93e4b70ad992a12f761bc6a1279dd495b Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 5 22:07:26 2020 +0200 patch 8.2.1377: triggering the ATTENTION prompt causes typeahead mess up Problem: Triggering the ATTENTION prompt causes typeahead to be messed up. Solution: Increment tb_change_cnt. (closes https://github.com/vim/vim/issues/6541)
author Bram Moolenaar <Bram@vim.org>
date Wed, 05 Aug 2020 22:15:16 +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}\")