1
0
forked from aniani/vim
Files
vim/runtime
Illia Bobyr 8079917447 patch 9.0.2041: trim(): hard to use default mask
Problem:  trim(): hard to use default mask (partly revert v9.0.2040)
Solution: use default mask when it is empty

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.

Currently, an empty 'mask' will make 'trim()' call return 'text' value
that is passed in unmodified.  It is unlikely that someone is using it,
so the chances of scripts being broken by this change are low.

Also, this reverts commit 9.0.2040 (which uses v:none for the default
and requires to use an empty string instead).

closes: #13358

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: Illia Bobyr <illia.bobyr@gmail.com>
2023-10-17 18:06:00 +02:00
..
2023-10-16 09:53:37 +02:00
2023-10-16 09:53:37 +02:00
2023-10-16 09:53:37 +02:00
2023-10-16 09:53:37 +02:00
2023-10-16 09:53:37 +02:00
2022-07-01 18:45:04 +01:00
2022-06-25 18:01:32 +01:00
2023-10-16 09:53:37 +02:00
2023-10-16 09:53:37 +02:00
2022-06-25 18:01:32 +01:00