forked from aniani/vim
patch 9.0.2040: trim(): hard to use default mask
Problem: trim(): hard to use default mask Solution: Use default 'mask' when it is v:none The default 'mask' value is pretty complex, as it includes many characters. Yet, if one needs to specify the trimming direction, the third argument, 'trim()' currently requires the 'mask' value to be provided explicitly. 'v:none' is already used to mean "use the default argument value" in user defined functions. See |none-function_argument| in help. closes: #13363 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Illia Bobyr <illia.bobyr@gmail.com>
This commit is contained in:
committed by
Christian Brabandt
parent
2e3cd52fa0
commit
6e6386716f
@@ -14,6 +14,7 @@ int check_for_unknown_arg(typval_T *args, int idx);
|
||||
int check_for_string_arg(typval_T *args, int idx);
|
||||
int check_for_nonempty_string_arg(typval_T *args, int idx);
|
||||
int check_for_opt_string_arg(typval_T *args, int idx);
|
||||
int check_for_opt_string_or_none_arg(typval_T *args, int idx, int *is_none);
|
||||
int check_for_number_arg(typval_T *args, int idx);
|
||||
int check_for_opt_number_arg(typval_T *args, int idx);
|
||||
int check_for_float_or_nr_arg(typval_T *args, int idx);
|
||||
|
Reference in New Issue
Block a user