view src/typemap @ 32224:e33c3437796a v9.0.1443

patch 9.0.1443: ending Insert mode when accessing a hidden prompt buffer Commit: https://github.com/vim/vim/commit/05a627c3d4e42a18f76c14828d68ee4747118211 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 9 22:01:31 2023 +0100 patch 9.0.1443: ending Insert mode when accessing a hidden prompt buffer Problem: Ending Insert mode when accessing a hidden prompt buffer. Solution: Don't stop Insert mode when it was active before. (closes https://github.com/vim/vim/issues/12237)
author Bram Moolenaar <Bram@vim.org>
date Sun, 09 Apr 2023 23:15:05 +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}\")