view src/typemap @ 11408:c9924ea60cc7 v8.0.0588

patch 8.0.0588: job_stop() often assumes the channel will be closed commit https://github.com/vim/vim/commit/1a9020d4cba6d90688506102ab587c371ff72f8b Author: Bram Moolenaar <Bram@vim.org> Date: Sat Apr 29 16:24:38 2017 +0200 patch 8.0.0588: job_stop() often assumes the channel will be closed Problem: job_stop() often assumes the channel will be closed, while the job may not actually be stopped. (Martin Gammels?ter) Solution: Only assume the job stops on "kill". Don't send a signal if the job has already ended. (closes #1632)
author Christian Brabandt <cb@256bit.org>
date Sat, 29 Apr 2017 16:30:03 +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}\")