view src/typemap @ 22832:8059beb101d0 v8.2.1963

patch 8.2.1963: crash when using a popup window with "latin1" encoding Commit: https://github.com/vim/vim/commit/927495b1fef835a8f83c089bb3aa3608b617e972 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Nov 6 17:58:35 2020 +0100 patch 8.2.1963: crash when using a popup window with "latin1" encoding Problem: Crash when using a popup window with "latin1" encoding. Solution: Don't use ScreenLinesUC when enc_utf8 is false. (closes https://github.com/vim/vim/issues/7241)
author Bram Moolenaar <Bram@vim.org>
date Fri, 06 Nov 2020 18:00:03 +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}\")