mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.2.1794: no falsy Coalescing operator
Problem: No falsy Coalescing operator. Solution: Add the "??" operator. Fix mistake with function argument count.
This commit is contained in:
@@ -924,6 +924,10 @@ common_type(type_T *type1, type_T *type2, type_T **dest, garray_T *type_gap)
|
||||
}
|
||||
else
|
||||
*dest = alloc_func_type(common, -1, type_gap);
|
||||
// Use the minimum of min_argcount.
|
||||
(*dest)->tt_min_argcount =
|
||||
type1->tt_min_argcount < type2->tt_min_argcount
|
||||
? type1->tt_min_argcount : type2->tt_min_argcount;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user