view src/typemap @ 21405:5324acb43fea v8.2.1253

patch 8.2.1253: CTRL-K in Insert mode gets <CursorHold> inserted Commit: https://github.com/vim/vim/commit/b146e01a7e41bf5787a2b5ccc6c340ed6001f308 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 19 23:06:05 2020 +0200 patch 8.2.1253: CTRL-K in Insert mode gets <CursorHold> inserted Problem: CTRL-K in Insert mode gets <CursorHold> inserted. (Roland Puntaier) Solution: Do not reset did_cursorhold, restore it. (closes #6447)
author Bram Moolenaar <Bram@vim.org>
date Sun, 19 Jul 2020 23:15: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}\")