view src/typemap @ 14083:8a9a00357676 v8.1.0059

patch 8.1.0059: displayed digraph for "ga" wrong with 'encoding' "cp1251" commit https://github.com/vim/vim/commit/bc5020aa4d7ef4aea88395eff858f74fc881eab9 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jun 16 17:25:22 2018 +0200 patch 8.1.0059: displayed digraph for "ga" wrong with 'encoding' "cp1251" Problem: Displayed digraph for "ga" wrong with 'encoding' "cp1251". Solution: Convert from 'encoding' to "utf-8" if needed. (closes https://github.com/vim/vim/issues/3015)
author Christian Brabandt <cb@256bit.org>
date Sat, 16 Jun 2018 17:30:06 +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}\")