forked from aniani/vim
patch 9.1.0071: Need a diff() Vim script function
Problem: Need a diff() Vim script function Solution: Add the diff() Vim script function using the xdiff internal diff library, add support for "unified" and "indices" mode. (Yegappan Lakshmanan) fixes: #4241 closes: #12321 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
1226b0584a
commit
fa37835b8c
10
src/typval.c
10
src/typval.c
@@ -623,6 +623,16 @@ check_for_opt_dict_arg(typval_T *args, int idx)
|
||||
|| check_for_dict_arg(args, idx) != FAIL) ? OK : FAIL;
|
||||
}
|
||||
|
||||
/*
|
||||
* Check for an optional non-NULL dict argument at 'idx'
|
||||
*/
|
||||
int
|
||||
check_for_opt_nonnull_dict_arg(typval_T *args, int idx)
|
||||
{
|
||||
return (args[idx].v_type == VAR_UNKNOWN
|
||||
|| check_for_nonnull_dict_arg(args, idx) != FAIL) ? OK : FAIL;
|
||||
}
|
||||
|
||||
#if defined(FEAT_JOB_CHANNEL) || defined(PROTO)
|
||||
/*
|
||||
* Give an error and return FAIL unless "args[idx]" is a channel or a job.
|
||||
|
Reference in New Issue
Block a user