view src/typemap @ 32403:1b0ade08ec91 v9.0.1533

patch 9.0.1533: test for 'smoothscroll' is ineffective Commit: https://github.com/vim/vim/commit/6f37e530d3e2d58ff055723047bf91d91af2632c Author: Luuk van Baal <luukvbaal@gmail.com> Date: Tue May 9 21:23:54 2023 +0100 patch 9.0.1533: test for 'smoothscroll' is ineffective Problem: Test for 'smoothscroll' is ineffective. Solution: Change the order of testing "zb" and "zt". (Luuk van Baal, closes #12366)
author Bram Moolenaar <Bram@vim.org>
date Tue, 09 May 2023 22:30: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}\")