view src/typemap @ 31031:467d950013a1 v9.0.0850

patch 9.0.0850: MS-Windows Terminal has unstable color control Commit: https://github.com/vim/vim/commit/38804d64576c07caf06b381fae4578b88f535aa9 Author: Christopher Plewright <chris@createng.com> Date: Wed Nov 9 23:55:52 2022 +0000 patch 9.0.0850: MS-Windows Terminal has unstable color control Problem: MS-Windows Terminal has unstable color control. Solution: Do not try to read the old command prompt colortable, use modern VT sequences. (Christopher Plewright, closes #11450, closes #11373)
author Bram Moolenaar <Bram@vim.org>
date Thu, 10 Nov 2022 01:00: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}\")