view src/typemap @ 30735:09a61a174259 v9.0.0702

patch 9.0.0702: incomplete testing cursor position with 'linebreak' set Commit: https://github.com/vim/vim/commit/30c0c467d6cc2a7af960ccb9002b50115b0e55cf Author: zeertzjq <zeertzjq@outlook.com> Date: Sun Oct 9 11:44:28 2022 +0100 patch 9.0.0702: incomplete testing cursor position with 'linebreak' set Problem: Incomplete testing cursor position after change with 'linebreak' set. Solution: Add a test and move test cases together. (closes #11313)
author Bram Moolenaar <Bram@vim.org>
date Sun, 09 Oct 2022 12:45: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}\")