comparison src/proto/typval.pro @ 33591:288da62613ba v9.0.2040

patch 9.0.2040: trim(): hard to use default mask Commit: https://github.com/vim/vim/commit/6e6386716f9494ae86027c6d34f657fd03dfec42 Author: Illia Bobyr <illia.bobyr@gmail.com> Date: Tue Oct 17 11:09:45 2023 +0200 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>
author Christian Brabandt <cb@256bit.org>
date Tue, 17 Oct 2023 11:15:09 +0200
parents e4851934751a
children e9c70470fe94
comparison
equal deleted inserted replaced
33590:d7220eebaf1a 33591:288da62613ba
12 float_T tv_get_float(typval_T *varp); 12 float_T tv_get_float(typval_T *varp);
13 int check_for_unknown_arg(typval_T *args, int idx); 13 int check_for_unknown_arg(typval_T *args, int idx);
14 int check_for_string_arg(typval_T *args, int idx); 14 int check_for_string_arg(typval_T *args, int idx);
15 int check_for_nonempty_string_arg(typval_T *args, int idx); 15 int check_for_nonempty_string_arg(typval_T *args, int idx);
16 int check_for_opt_string_arg(typval_T *args, int idx); 16 int check_for_opt_string_arg(typval_T *args, int idx);
17 int check_for_opt_string_or_none_arg(typval_T *args, int idx, int *is_none);
17 int check_for_number_arg(typval_T *args, int idx); 18 int check_for_number_arg(typval_T *args, int idx);
18 int check_for_opt_number_arg(typval_T *args, int idx); 19 int check_for_opt_number_arg(typval_T *args, int idx);
19 int check_for_float_or_nr_arg(typval_T *args, int idx); 20 int check_for_float_or_nr_arg(typval_T *args, int idx);
20 int check_for_bool_arg(typval_T *args, int idx); 21 int check_for_bool_arg(typval_T *args, int idx);
21 int check_for_opt_bool_arg(typval_T *args, int idx); 22 int check_for_opt_bool_arg(typval_T *args, int idx);