summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2023-11-04patch 9.0.2088: Vim9: still allows abstract static methodsv9.0.2088Yegappan Lakshmanan
Problem: Vim9: still allows abstract static methods (after v9.0.2084, v9.0.2085 and v9.0.2087) Solution: Disallow abstract static methods closes: #13479 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-11-02patch 9.0.2087: build-failure in vim9classv9.0.2087Christian Brabandt
Problem: build-failure in vim9class Solution: reference correct error message, disable non-failing test closes: #13476 closes: #13477 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-11-02patch 9.0.2086: code cleanup for option callbacks neededv9.0.2086zeertzjq
Problem: code cleanup for option callbacks needed Solution: remove flag os_doskip, it's not necessary, as we can check, whether an error message was returned Remove unnecessary field os_doskip Callback functions for boolean options set os_doskip immediately before returning an error message, so os_doskip isn't actually needed. closes: #13461 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-11-02patch 9.0.2085: Vim9: abstract can be used in interfacev9.0.2085Yegappan Lakshmanan
Problem: Vim9: abstract can be used in interface Solution: Disallow the use of abstract in an interface fixes: #13456 closes: #13464 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-11-02patch 9.0.2084: Vim9: abstract static methods are possiblev9.0.2084Yegappan Lakshmanan
Problem: Vim9: abstract static methods are possible Solution: Disallow abstract static methods fixes: #13462 closes: #13466 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-11-02patch 9.0.2083: Perl: xsubpp may be in non-standard locationv9.0.2083Zdenek Dohnal
Problem: Perl: xsubpp may be in non-standard location Solution: Add --with-subpp configure option configure.ac: Add --with-xsubpp configure option Some environments (such as flatpaks) cannot count on xsubpp being in the common Perl directory, so a configure option should be used for clean solution. closes: #13470 Signed-off-by: Zdenek Dohnal <zdohnal@redhat.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-11-02patch 9.0.2082: test_channel may fail because of IPv6 config issuev9.0.2082James McCoy
Problem: test_channel may fail because of IPv6 config issues Solution: Catch and skip the test, if getaddrinfo() fails with 'Address family not supported' Mark tests as skipped when ch_open encounters E901 On some of the Debian build systems, the IPv6 channel tests fail because `ch_open('[::1]:<port>', ...)` raises the error "E901: getaddrinfo() in channel_open(): Address family for hostname not supported". This appears to happen because getaddrinfo() can't perform the reverse lookup for the ::1, which is a config issue on that system. Therefore, instead of reporting a test failure, mark the test as skipped due to the bad network config closes: #13473 Signed-off-by: James McCoy <jamessan@jamessan.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-28patch 9.0.2081: smoothscroll may result in wrong cursor positionv9.0.2081Luuk van Baal
Problem: With 'smoothscroll' set, "w_skipcol" is not reset when unsetting 'wrap'. Resulting in incorrect calculation of the cursor position. Solution: Reset "w_skipcol" when unsetting 'wrap'. fixes: #12970 closes: #13439 Signed-off-by: Luuk van Baal <luukvbaal@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-28patch 9.0.2080: vim9_script test too largev9.0.2080Yegappan Lakshmanan
Problem: vim9_script test too large Solution: split vim9 type alias test into separate test file Move type alias tests to a separate test file closes: #13447 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-28patch 9.0.2079: Not all Dart files detectedv9.0.2079Doug Kearns
Problem: Not all Dart files detected Solution: Add shebang filetype detection for Dart closes: #13449 Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-28patch 9.0.2078: several problems with type aliasesv9.0.2078Yegappan Lakshmanan
Problem: several problems with type aliases Solution: Check for more error conditions, add tests, fix issues Check for more error conditions and add additional tests fixes #13434 fixes #13437 fixes #13438 closes #13441 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-27patch 9.0.2077: CI fails because of trailing whitespace in testv9.0.2077Christian Brabandt
Problem: CI fails because of trailing whitespace in test Solution: Remove it Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-27patch 9.0.2076: Vim9: No support for type aliasesv9.0.2076Yegappan Lakshmanan
Problem: Vim9: No support for type aliases Solution: Implement :type command A type definition is giving a name to a type specification. This also known type alias. :type ListOfStrings = list<string> The type alias can be used wherever a built-in type can be used. The type alias name must start with an upper case character. closes: #13407 Signed-off-by: Christian Brabandt <cb@256bit.org> Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-10-27patch 9.0.2075: TextChangedI may not always triggerv9.0.2075Christian Brabandt
Problem: TextChangedI may not always trigger Solution: trigger it in more cases: for insert/ append/change operations, and when opening a new line, fixes: #13367 closes: #13375 Signed-off-by: Christian Brabandt <cb@256bit.org> Signed-off-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com>
2023-10-27patch 9.0.2074: Completion menu may be wrongv9.0.2074Christian Brabandt
Problem: Completion menu may be wrong Solution: Check for the original direction of the completion menu, add more tests, make it work with 'noselect' completion: move in right direction when filling completion_info() When moving through the insert completion menu and switching directions, we need to make sure we start at the correct position in the list and move correctly forward/backwards through it, so that we do not skip entries and the selected item points to the correct entry in the list of completion entries generated by the completion_info() function. The general case is this: 1) CTRL-X CTRL-N, we will traverse the list starting from compl_first_match and then go forwards (using the cp->next pointer) through the list (skipping the very first entry, which has the CP_ORIGINAL_TEXT flag set (since that is the empty/non-selected entry 2) CTRL-X CTRL-P, we will traverse the list starting from compl_first_match (which now points to the last entry). The previous entry will have the CP_ORIGINAL_TEXT flag set, so we need to start traversing the list from the second prev pointer. There are in fact 2 special cases after starting the completion menu with CTRL-X: 3) CTRL-N and then going backwards by pressing CTRL-P again. compl_first_match will point to the same entry as in step 1 above, but since compl_dir_foward() has been switched by pressing CTRL-P to backwards we need to pretend to be in still in case 1 and still traverse the list in forward direction using the cp_next pointer 4) CTRL-P and then going forwards by pressing CTRL-N again. compl_first_match will point to the same entry as in step 2 above, but since compl_dir_foward() has been switched by pressing CTRL-N to forwards we need to pretend to be in still in case 2 and still traverse the list in backward direction using the cp_prev pointer For the 'noselect' case however, this is slightly different again. When going backwards, we only need to go one cp_prev pointer back. And resting of the direction works again slightly different. So we need to take the noselect option into account when deciding in which direction to iterate through the list of matches. related: #13402 related: #12971 closes: #13408 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-26patch 9.0.2073: typo in quickfix.c commentsv9.0.2073zeertzjq
Problem: typo in quickfix.c comments Solution: fix them closes: #13422 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-10-26patch 9.0.2072: Vim9: no nr2str conversion in list-unpackv9.0.2072Yegappan Lakshmanan
Problem: Vim9: no nr2str conversion in list-unpack Solution: Generate 2STRING instruction to convert dict index to string Generate instruction to convert dict index to a string fixes: #13417 closes: #13424 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-10-26patch 9.0.2071: objdump files not recognizedv9.0.2071Colin Kennedy
Problem: objdump files not recognized Solution: detect *.objdump files, add a filetype plugin Added the objdump file/text format closes: #13425 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Colin Kennedy <colinvfx@gmail.com>
2023-10-26patch 9.0.2070: [security] disallow setting env in restricted modev9.0.2070Christian Brabandt
Problem: [security] disallow setting env in restricted mode Solution: Setting environment variables in restricted mode could potentially be used to execute shell commands. Disallow this. restricted mode: disable allow setting of environment variables Setting environment variables in restricted mode, may have some unwanted consequences. So, for example by setting $GCONV_PATH in restricted mode and then calling the iconv() function, one may be able to execute some unwanted payload, because the `iconv_open()` function internally uses the `$GCONV_PATH` variable to find its conversion data. So let's disable setting environment variables, even so this is no complete protection, since we are not clearing the existing environment. I tried a few ways but wasn't successful :( One could also argue to disable the iconv() function completely in restricted mode, but who knows what other API functions can be influenced by setting some other unrelated environment variables. So let's leave it as it is currently. closes: #13394 See: https://huntr.com/bounties/b0a2eda1-459c-4e36-98e6-0cc7d7faccfe/ Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-26patch 9.0.2069: possible to escape bracketed paste mode with Ctrl-Cv9.0.2069David Leadbeater
Problem: possible to escape bracketed paste mode with Ctrl-C Solution: Do not handle Ctrl-C specially when key_protocol is in use, makes bracketed paste mode more robust When a key protocol is in use Ctrl-C will be sent as an escape sequence, but a raw Ctrl-C can be sent when pasting data. Pass this through, so that a Ctrl-C can be pasted and won't result in exiting insert mode (where the rest of the pasted keys can cause all kind of nasty side-effects). Many terminals will strip control characters in paste data (and xterm will strip ^C since version 388), but this provides some defense in depth if users change settings like xterm's allowPasteControls. closes: #13398 Signed-off-by: David Leadbeater <dgl@dgl.cx> Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-26patch 9.0.2068: [security] overflow in :historyv9.0.2068Christian Brabandt
Problem: [security] overflow in :history Solution: Check that value fits into int The get_list_range() function, used to parse numbers for the :history and :clist command internally uses long variables to store the numbers. However function arguments are integer pointers, which can then overflow. Check that the return value from the vim_str2nr() function is not larger than INT_MAX and if yes, bail out with an error. I guess nobody uses a cmdline/clist history that needs so many entries... (famous last words). It is only a moderate vulnerability, so impact should be low. Github Advisory: https://github.com/vim/vim/security/advisories/GHSA-q22m-h7m2-9mgm Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-25patch 9.0.2067: xxd: coloring was disabled on Cygwinv9.0.2067Ken Takata
Problem: xxd: coloring was disabled on Cygwin Solution: don't include WIN32 xxd: Fix that color was disabled on Cygwin "windows.h" was unintentionally included on Cygwin since 9.0.1834. This accidentally disabled coloring on Cygwin. Stop including "windows.h" on Cygwin. closes: #13414 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Ken Takata <kentkt@csc.jp>
2023-10-25patch 9.0.2066: xxd: corrupting files when reversing bit dumpsv9.0.2066OldWorldOrdr
Problem: xxd: corrupting files when reversing bit dumps Solution: handle reversing bit dump slightly differently fixes: #13410 closes: #13415 Co-authored-by: OldWorldOrdr <joey.t.reinhart@gmail.com> Co-authored-by: K.Takata <kentkt@csc.jp> Signed-off-by: Christian Brabandt <cb@256bit.org> Signed-off-by: K.Takata <kentkt@csc.jp> Signed-off-by: tristhaus <tristhaus@yahoo.de>
2023-10-25patch 9.0.2065: EXPAND flag set for filetype optionv9.0.2065Doug Kearns
Problem: EXPAND flag set for filetype option Solution: Remove P_EXPAND flag from the 'filetype' option Remove P_EXPAND flag from the 'filetype' option Problem: P_EXPAND flag is erroneously set for 'filetype' option Solution: Remove the P_EXPAND flag This flag is used by string options that accept file path values. See :help set_env. This appears to have been included in d5e8c92 and resulted from an incorrect implementation of 'filetype' completion. See #12900 for a small discussion. related: #12900 closes: #13416 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Doug Kearns <dougkearns@gmail.com>
2023-10-25patch 9.0.2064: cannot use buffer-number for errorformatv9.0.2064Yegappan Lakshmanan
Problem: cannot use buffer-number for errorformat Solution: add support for parsing a buffer number using '%b' in 'errorformat' closes: #13419 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-10-23patch 9.0.2063: pacman hooks are detected as conf filetypev9.0.2063Guido Cella
Problem: pacman hooks are detected as conf filetype Solution: make it consistent to pacman.conf and detect those hooks as confini Because confini has much better syntax highlighting than conf. For reference, I identified pacman.conf and pacman hooks as dosini in https://github.com/vim/vim/pull/6335, then https://github.com/vim/vim/pull/10213 changed them to conf, then https://github.com/vim/vim/pull/10518 changed pacman.conf to confini but forgot to change hooks. closes: #13399 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Guido Cella <guido@guidocella.xyz>
2023-10-23patch 9.0.2062: Janet files are not recognisedv9.0.2062Doug Kearns
Problem: Janet files are not recognised Solution: Add filename and shebang detection (without adding an extra filetype plugin) Those are used by the Janet language: http://www.janet-lang.org closes: #13400 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Doug Kearns <dougkearns@gmail.com>
2023-10-23patch 9.0.2061: not able to detect xkb filetypesv9.0.2061Guido Cella
Problem: not able to detect xkb filetypes Solution: Detect files below /u/s/X11/xkb as xkb files (without adding an extra filetype) Those files are used from the X11 xkb extension closes: #13401 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Guido Cella <guido@guidocella.xyz>
2023-10-23patch 9.0.2060: *.{gn,gni} files are not recognizedv9.0.2060Amaan Qureshi
Problem: *.{gn,gni} files are not recognized Solution: Detect some as gn filetype (without adding an extra filetype) Those come from: https://gn.googlesource.com/gn/ closes: #13405 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
2023-10-21patch 9.0.2059: outstanding exceptions may be skippedv9.0.2059Yegappan Lakshmanan
Problem: outstanding exceptions may be skipped Solution: When restoring exception state, process remaining outstanding exceptions closes: #13386 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-10-21patch 9.0.2058: tests: avoid error when no swap files existv9.0.2058zeertzjq
Problem: tests: avoid error when no swap files exist Solution: use unlet! so that no error message is reported in case the variable does not exists When s:GetSwapFileList() does not find any swapfiles, it will return an empty list []. This means, that the variable 'name' will not be declared, cause the following unlet command to fail and causing a 1 sec delay on running the tests. So let's instead use the :unlet! command which simply skips reporting an error when the variable given as parameter does not exists. closes: #13396 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-10-21patch 9.0.2057: Vim9: no strict type checks for funcrefs varargsv9.0.2057Ernie Rael
Problem: Vim9: no strict type checks for funcrefs varargs Solution: Perform strict type checking when declaring funcrefs with vararg declaration, add tests closes: #13397 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Ernie Rael <errael@raelity.com>
2023-10-20patch 9.0.2056: no digraph for quadruple primev9.0.2056Jonathan Wright
Problem: no digraph for quadruple prime Solution: add quadruple prime digraph using 4' closes: #13380 Signed-off-by: Jonathan Wright <quaggy@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Jonathan Wright <quaggy@gmail.com>
2023-10-20patch 9.0.2055: Vim9: non-consistent error messagesv9.0.2055Ernie Rael
Problem: Vim9: non-consistent error messages Solution: make error messages more consistent with common structure Adjust vim9class messages to follow common pattern. [Variable|Method] "var-or-meth-name" ... class "class-name" closes: #13391 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Ernie Rael <errael@raelity.com>
2023-10-20patch 9.0.2054: win32: iscygpty needs updatev9.0.2054Ken Takata
Problem: win32: iscygpty needs update Solution: Update iscygpty to the latest version, make use iswascii() API function Import the latest version from https://github.com/k-takata/ptycheck. This addresses #13332 for iscygpty() closes: #13392 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Ken Takata <kentkt@csc.jp>
2023-10-19patch 9.0.2053: zig filetype detection test wrongv9.0.2053Gregory Anders
Problem: zig filetype detection test wrong Solution: Remove .zir pattern, add new test for .zon pattern closes: #13389 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Gregory Anders <greg@gpanders.com>
2023-10-19patch 9.0.2052: win32: using deprecated wsock32 apiv9.0.2052Ken Takata
Problem: win32: using deprecated wsock32 api Solution: Use winsock2 (ws2_32) consistently win32: Stop using wsock32 We have already used ws2_32 (winsock2) and already dropped support for Windows 95 and NT4. So, we don't need to care about wsock32. Use ws2_32 consistently. closes: #13383 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Ken Takata <kentkt@csc.jp>
2023-10-19patch 9.0.2051: Vim9: wrong error for non-existing object varv9.0.2051Yegappan Lakshmanan
Problem: Vim9: wrong error for non-existing object var Solution: mention object or class depending on whether the var is an object or class variable. closes: #13384 closes: #13387 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-10-19Patch 9.0.2050v2: Missing change to version.cChristian Brabandt
Problem: v9.0.2050 missed the change to version.c Solution: include the version.c change Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-19patch 9.0.2050: Vim9: crash with deferred function call and exceptionv9.0.2050Yegappan Lakshmanan
Problem: Vim9: crash with deferred function call and exception Solution: Save and restore exception state Crash when a deferred function is called after an exception and another exception is thrown closes: #13376 closes: #13377 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-10-19patch 9.0.2049: Vim9: not recognizing qualified class vars for infix opsv9.0.2049Yegappan Lakshmanan
Problem: Vim9: not recognizing qualified class vars for infix ops Solution: Drop the class type from the stack before generating the CLASSMEMBER instruction closes: #13378 closes: #13379 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-10-18patch 9.0.2048: python: uninitialized warningv9.0.2048Ken Takata
Problem: python: uninitialized warning Solution: initialize 'minor' always win32,py3: Fix uninitialized warning Fix the following warning: ``` if_python3.c: In function 'py3_get_system_libname': if_python3.c:879:16: warning: 'minor' may be used uninitialized [-Wmaybe-uninitialized] 879 | if (minor == PY_MINOR_VERSION) | ^ if_python3.c:839:24: note: 'minor' was declared here 839 | long major, minor; | ^~~~~ ``` closes: #13368 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Ken Takata <kentkt@csc.jp>
2023-10-18patch 9.0.2047: perl: warning about inconsistent dll linkagev9.0.2047Ken Takata
Problem: perl: warning about inconsistent dll linkage Solution: suppress warning Suppress warning C4273 (inconsistent DLL linkage). Also adjust inconsistent use of const. closes: #13369 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Ken Takata <kentkt@csc.jp>
2023-10-18patch 9.0.2046: win32,python: warning that MS_WIN64 got re-definedv9.0.2046Ken Takata
Problem: win32,python: warning that MS_WIN64 got re-defined Solution: Do not define MS_WIN64, as it is no longer used Suppress the following warning: ``` In file included from C:/Python312-64/include/Python.h:12, from if_python3.c:79: C:/Python312-64/include/pyconfig.h:240: warning: "MS_WIN64" redefined 240 | #define MS_WIN64 | <command-line>: note: this is the location of the previous definition ``` `MS_WIN64` is not defined in `Make_mvc.mak` either. This should be able to be safely removed. closes: #13370 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Ken Takata <kentkt@csc.jp>
2023-10-18patch 9.0.2045: tests: checking for swap files takes timev9.0.2045zeertzjq
Problem: tests: checking for swap files takes time Solution: don't check for swap files when test has been skipped Check for swap files takes a considerable about of time, so don't do that for skipped tests to avoid wasting time. closes: #13371 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
2023-10-18patch 9.0.2044: Vim9: exceptions confuse defered functionsv9.0.2044Yegappan Lakshmanan
Problem: Vim9: exceptions confuse defered functions Solution: save and restore exception state when calling defered functions closes: #13364 closes: #13372 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
2023-10-17patch 9.0.2043: Vim9: issue with funcref assignmentand varargsv9.0.2043Ernie Rael
Problem: Vim9: issue with funcref assignmentand varargs Solution: Fix funcref type checking closes: #13351 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: Ernie Rael <errael@raelity.com>
2023-10-17patch 9.0.2042: Test_cq_zero_exmode fails without channel featurev9.0.2042Christian Brabandt
Problem: Test_cq_zero_exmode fails without channel feature Solution: Make the test check the channel feature closes: #13365 Signed-off-by: Christian Brabandt <cb@256bit.org>
2023-10-17patch 9.0.2041: trim(): hard to use default maskv9.0.2041Illia Bobyr
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-17patch 9.0.2040: trim(): hard to use default maskv9.0.2040Illia Bobyr
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>