view src/typemap @ 31219:42acbd0cb313 v9.0.0943

patch 9.0.0943: pretending to go out of Insert mode when Esc is received Commit: https://github.com/vim/vim/commit/d330e8422d1c4670a241ce8ebde4c37918538dce Author: Bram Moolenaar <Bram@vim.org> Date: Thu Nov 24 20:23:24 2022 +0000 patch 9.0.0943: pretending to go out of Insert mode when Esc is received Problem: Pretending to go out of Insert mode when Esc is received has side effects. Solution: When the kitty keyboard protocol is enabled expect Esc to always be the start of an escape sequence.
author Bram Moolenaar <Bram@vim.org>
date Thu, 24 Nov 2022 21:30: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}\")