Problem: Various comment and indent mistakes, returning wrong zero.
Solution: Fix the mistakes. Return NULL instead of FAIL.
ga_concat(&ga, (char_u *)":");
if (inicmd != NULL)
{
- // Can't use <CR> after "inicmd", because an "startinsert" would cause
+ // Can't use <CR> after "inicmd", because a "startinsert" would cause
// the following commands to be inserted as text. Use a "|",
// hopefully "inicmd" does allow this...
ga_concat(&ga, inicmd);
*/
static char_u *
deref_function_name(
- char_u **arg,
- char_u **tofree,
- evalarg_T *evalarg,
- int verbose)
+ char_u **arg,
+ char_u **tofree,
+ evalarg_T *evalarg,
+ int verbose)
{
typval_T ref;
char_u *name = *arg;
/*
* Handle fourth level expression:
- * + number addition
+ * + number addition, concatenation of list or blob
* - number subtraction
* . string concatenation (if script version is 1)
* .. string concatenation
semsg(_(e_illegal_variable_name_str), name);
goto failed;
}
- is_script_local = ht == get_script_local_ht() || sid != 0 || var_in_autoload;
+ is_script_local = ht == get_script_local_ht() || sid != 0
+ || var_in_autoload;
if (vim9script
&& !is_script_local
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 4318,
/**/
4317,
/**/
{
semsg(_(e_separator_mismatch_str), p);
vim_free(tofree);
- return FAIL;
+ return NULL;
}
if (tofree == NULL)
len = (int)(end - (p + 1));
vim_free(tofree);
p += len + 2 + dropped;
if (pat == NULL)
- return FAIL;
+ return NULL;
if (generate_PUSHS(cctx, &pat) == FAIL)
- return FAIL;
+ return NULL;
if (generate_COMPARE(cctx, EXPR_MATCH, FALSE) == FAIL)
return NULL;
}
/*
- * If "split_disallowed" is set given an error and return FAIL.
+ * If "split_disallowed" is set give an error and return FAIL.
* Otherwise return OK.
*/
static int