view src/typemap @ 30861:c33f094d20c1 v9.0.0765

patch 9.0.0765: with a Visual block a put command column may go negative Commit: https://github.com/vim/vim/commit/36343ae0fb7247e060abfd35fb8e4337b33abb4b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 15 19:04:05 2022 +0100 patch 9.0.0765: with a Visual block a put command column may go negative Problem: With a Visual block a put command column may go negative. Solution: Check that the column does not become negative.
author Bram Moolenaar <Bram@vim.org>
date Sat, 15 Oct 2022 20:15: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}\")