diff options
author | Illia Bobyr <illia.bobyr@gmail.com> | 2023-10-17 11:09:45 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2023-10-17 11:09:45 +0200 |
commit | 6e6386716f9494ae86027c6d34f657fd03dfec42 (patch) | |
tree | 4a6c57ffec25e0af23238b2c23bd038eb2a2c86f /src/errors.h | |
parent | 2e3cd52fa02b1a208c97992b1bca3b04f7be66d4 (diff) |
patch 9.0.2040: trim(): hard to use default maskv9.0.2040
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>
Diffstat (limited to 'src/errors.h')
-rw-r--r-- | src/errors.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/errors.h b/src/errors.h index 7b1181ae94..d7ed81a16e 100644 --- a/src/errors.h +++ b/src/errors.h @@ -3539,6 +3539,8 @@ EXTERN char e_cannot_lock_object_variable_str[] EXTERN char e_cannot_lock_class_variable_str[] INIT(= N_("E1392: Cannot (un)lock class variable \"%s\" in class \"%s\"")); #endif +EXTERN char e_string_or_none_required_for_argument_nr[] + INIT(= N_("E1393: String or v:none required for argument %d")); // E1393 - E1499 unused (reserved for Vim9 class support) EXTERN char e_cannot_mix_positional_and_non_positional_str[] INIT(= N_("E1500: Cannot mix positional and non-positional arguments: %s")); |