]>
granicus.if.org Git - vim/log
Bram Moolenaar [Wed, 29 Dec 2021 19:22:44 +0000 (19:22 +0000)]
patch 8.2.3940: match highlight disappears when doing incsearch for ":s/pat"
Problem: Match highlight disappears when doing incsearch for ":s/pat".
Solution: Only use line limit for incsearch highlighting. (closes #9425)
Yegappan Lakshmanan [Wed, 29 Dec 2021 18:16:21 +0000 (18:16 +0000)]
patch 8.2.3939: MS-Windows: fnamemodify('', ':p') does not work
Problem: MS-Windows: fnamemodify('', ':p') does not work.
Solution: Do not consider an empty string a full path. (Yegappan Lakshmanan,
closes #9428, closes #9427)
Bram Moolenaar [Wed, 29 Dec 2021 18:09:13 +0000 (18:09 +0000)]
patch 8.2.3938: line comment start is also found in a string
Problem: Line comment start is also found in a string.
Solution: Skip line comments in a string.
Yegappan Lakshmanan [Wed, 29 Dec 2021 17:38:46 +0000 (17:38 +0000)]
patch 8.2.3937: Insert mode completion function is too long
Problem: Insert mode completion function is too long.
Solution: Refactor into multiple functions. (Yegappan Lakshmanan,
closes #9423)
Sean Dewar [Wed, 29 Dec 2021 16:44:48 +0000 (16:44 +0000)]
patch 8.2.3936: no proper test for maintaining change mark in diff mode
Problem: No proper test for maintaining change mark in diff mode.
Solution: Run the test with internal and external diff. (Sean Dewar,
closes #9424)
Bram Moolenaar [Wed, 29 Dec 2021 16:05:31 +0000 (16:05 +0000)]
patch 8.2.3935: CTRL-U in Insert mode does not fix the indent
Problem: CTRL-U in Insert mode does not fix the indent.
Solution: Fix the indent when 'cindent' is set.
Bram Moolenaar [Wed, 29 Dec 2021 15:15:47 +0000 (15:15 +0000)]
patch 8.2.3934: repeating line comment is undesired for "O" command
Problem: Repeating line comment is undesired for "O" command.
Solution: Do not copy line comment leader for "O". (closes #9426)
Richard Doty [Wed, 29 Dec 2021 14:39:08 +0000 (14:39 +0000)]
patch 8.2.3933: after ":cd" fails ":cd -" is incorrect
Problem: After ":cd" fails ":cd -" is incorrect.
Solution: Set the previous directory only after successfully changing
directory. (Richard Doty, closes #9419, closes #8983)
Bram Moolenaar [Wed, 29 Dec 2021 14:09:32 +0000 (14:09 +0000)]
patch 8.2.3932: C line comment not formatted properly
Problem: C line comment not formatted properly.
Solution: If a line comment follows after "#if" the next line is not the end
of a paragraph.
Bram Moolenaar [Wed, 29 Dec 2021 11:59:53 +0000 (11:59 +0000)]
patch 8.2.3931: Coverity reports a memory leak
Problem: Coverity reports a memory leak.
Solution: Free memory in case of failure.
Bram Moolenaar [Tue, 28 Dec 2021 20:59:56 +0000 (20:59 +0000)]
patch 8.2.3930: getcmdline() argument has a misleading type
Problem: getcmdline() argument has a misleading type.
Solution: Use the correct type, even though the value is not used.
Bram Moolenaar [Tue, 28 Dec 2021 20:53:30 +0000 (20:53 +0000)]
patch 8.2.3929: using unititialized variable
Problem: Using unititialized variable.
Solution: Set the option flags to zero for a terminal option.
Bram Moolenaar [Tue, 28 Dec 2021 20:49:56 +0000 (20:49 +0000)]
patch 8.2.3928: heredoc test fails
Problem: Heredoc test fails.
Solution: Correct order of function arguments.
Bram Moolenaar [Tue, 28 Dec 2021 20:18:50 +0000 (20:18 +0000)]
patch 8.2.3927: Vim9: double free when using lambda
Problem: Vim9: double free when using lambda.
Solution: Don't free both cmdline and line_to_free.
Bram Moolenaar [Tue, 28 Dec 2021 20:03:43 +0000 (20:03 +0000)]
patch 8.2.3926: build failure without the 'autochdir' option
Problem: Build failure without the 'autochdir' option. (John Marriott)
Solution: Add #ifdefs.
Bram Moolenaar [Tue, 28 Dec 2021 18:30:05 +0000 (18:30 +0000)]
patch 8.2.3925: diff mode confused by NUL bytes
Problem: Diff mode confused by NUL bytes.
Solution: Handle NUL bytes differently. (Christian Brabandt, closes #9421,
closes #9418)
Bram Moolenaar [Tue, 28 Dec 2021 17:55:26 +0000 (17:55 +0000)]
patch 8.2.3924: Vim9: no error if something follows :enddef
Problem: Vim9: no error if something follows :enddef in a nested function.
Solution: Give an error. Move common code to a function.
Bram Moolenaar [Tue, 28 Dec 2021 17:23:12 +0000 (17:23 +0000)]
patch 8.2.3923: Vim9: double free with split argument list in nested function
Problem: Vim9: double free if a nested function has a line break in the
argument list.
Solution: Set cmdlinep when freeing the previous line.
ichizok [Tue, 28 Dec 2021 15:51:45 +0000 (15:51 +0000)]
patch 8.2.3922: cannot build with dynamic Ruby 3.1
Problem: Cannot build with dynamic Ruby 3.1.
Solution: Add "_EXTRA" variables for CI. Add missing functions. (Ozaki
Kiichi, closes #9420)
Lewis Russell [Tue, 28 Dec 2021 13:54:41 +0000 (13:54 +0000)]
patch 8.2.3921: the way xdiff is used is inefficient
Problem: The way xdiff is used is inefficient.
Solution: Use hunk_func instead of the out_line callback. (Lewis Russell,
closes #9344)
Bram Moolenaar [Tue, 28 Dec 2021 13:15:05 +0000 (13:15 +0000)]
patch 8.2.3920: restoring directory after using another window is inefficient
Problem: Restoring directory after using another window is inefficient.
Solution: Only restore the directory for win_execute(). Apply 'autochdir'
only when needed.
Bram Moolenaar [Tue, 28 Dec 2021 11:24:49 +0000 (11:24 +0000)]
patch 8.2.3919: Vim9: wrong argument for append() results in two errors
Problem: Vim9: wrong argument for append() results in two errors.
Solution: Check did_emsg. Also for setline(). Adjust the help for
appendbufline().
Bram Moolenaar [Mon, 27 Dec 2021 21:42:57 +0000 (21:42 +0000)]
patch 8.2.3918: function list test fails
Problem: Function list test fails.
Solution: Adjust the test for the new location of the function list.
Bram Moolenaar [Mon, 27 Dec 2021 21:33:07 +0000 (21:33 +0000)]
Update runtime files
Bram Moolenaar [Mon, 27 Dec 2021 21:28:34 +0000 (21:28 +0000)]
patch 8.2.3917: the eval.txt help file is way too big
Problem: The eval.txt help file is way too big.
Solution: Move the builtin function details to a separate file.
Bram Moolenaar [Mon, 27 Dec 2021 20:57:06 +0000 (20:57 +0000)]
patch 8.2.3916: no error for passing an invalid line number to append()
Problem: No error for passing an invalid line number to append().
Solution: In Vim9 script check for a non-negative number. (closes #9417)
Bram Moolenaar [Mon, 27 Dec 2021 19:28:37 +0000 (19:28 +0000)]
patch 8.2.3915: illegal memory access when completing with invalid bytes
Problem: illegal memory access when completing with invalid bytes.
Solution: Avoid going over the end of the completion text.
Dominique Pelle [Mon, 27 Dec 2021 17:21:41 +0000 (17:21 +0000)]
patch 8.2.3914: various spelling mistakes in comments
Problem: Various spelling mistakes in comments.
Solution: Fix the mistakes. (Dominique Pellé, closes #9416)
Bram Moolenaar [Mon, 27 Dec 2021 15:39:57 +0000 (15:39 +0000)]
patch 8.2.3913: help for expressions does not mention Vim9 syntax
Problem: Help for expressions does not mention Vim9 syntax.
Solution: Add the rules for Vim9 to the expression help. Rename functions
to match the help.
Bram Moolenaar [Mon, 27 Dec 2021 12:52:07 +0000 (12:52 +0000)]
patch 8.2.3912: the ins_complete() function is much too long
Problem: The ins_complete() function is much too long.
Solution: Split it up into multiple functions. (Yegappan Lakshmanan,
closes #9414)
Bram Moolenaar [Mon, 27 Dec 2021 12:29:19 +0000 (12:29 +0000)]
patch 8.2.3911: Vim9: type check for filter() does not accept unknown
Problem: Vim9: type check for filter() does not accept unknown.
Solution: Also accept unknown for the return type. (closes #9413)
Bram Moolenaar [Mon, 27 Dec 2021 11:54:37 +0000 (11:54 +0000)]
patch 8.2.3910: when compare function of sort() fails it does not abort
Problem: When the compare function of sort() produces and error then sort()
does not abort.
Solution: Check if did_emsg was incremented.
Bram Moolenaar [Mon, 27 Dec 2021 10:35:52 +0000 (10:35 +0000)]
patch 8.2.3909: Containerfile using prefix name not recognized
Problem: Containerfile using prefix name not recognized.
Solution: Recognize Containerfile.*.
Yegappan Lakshmanan [Sun, 26 Dec 2021 21:54:43 +0000 (21:54 +0000)]
patch 8.2.3908: cannot use a script-local function for 'foldtext'
Problem: Cannot use a script-local function for 'foldtext'.
Solution: Expand "s:" and "<SID>". (Yegappan Lakshmanan, closes #9411)
Bram Moolenaar [Sun, 26 Dec 2021 20:20:34 +0000 (20:20 +0000)]
patch 8.2.3907: error messages are spread out
Problem: Error messages are spread out.
Solution: Move error messages to errors.h. Avoid duplicates.
Bram Moolenaar [Sun, 26 Dec 2021 18:09:31 +0000 (18:09 +0000)]
patch 8.2.3906: Vim9 help still contains "under development" warnings
Problem: Vim9 help still contains "under development" warnings.
Solution: Remove the explicit warning.
Bram Moolenaar [Sun, 26 Dec 2021 17:31:35 +0000 (17:31 +0000)]
patch 8.2.3905: Dockerfile using prefix name not recognized
Problem: Dockerfile using prefix name not recognized.
Solution: Recognize Dockerfile.*. (closes #9410)
Bram Moolenaar [Sun, 26 Dec 2021 17:18:14 +0000 (17:18 +0000)]
patch 8.2.3904: Vim9: skip expression type is not checked at compile time
Problem: Vim9: skip expression type is not checked at compile time.
Solution: Add argument type checks.
Bram Moolenaar [Sun, 26 Dec 2021 15:00:07 +0000 (15:00 +0000)]
patch 8.2.3903: "gM" does not count tabs as expected
Problem: "gM" does not count tabs as expected.
Solution: Use linetabsize() instead of mb_string2cells(). (closes #9409)
Bram Moolenaar [Sun, 26 Dec 2021 14:23:22 +0000 (14:23 +0000)]
patch 8.2.3902: Vim9: double free with nested :def function
Problem: Vim9: double free with nested :def function.
Solution: Pass "line_to_free" from compile_def_function() and make sure
cmdlinep is valid.
Bram Moolenaar [Sun, 26 Dec 2021 12:07:30 +0000 (12:07 +0000)]
patch 8.2.3901: Vim9: Cannot set 'cpo' in main .vimrc if using Vim9 script
Problem: Vim9: Cannot set 'cpo' in main .vimrc if using Vim9 script.
Solution: Do not restore 'cpo' at the end of the main .vimrc.
Yegappan Lakshmanan [Sun, 26 Dec 2021 10:51:39 +0000 (10:51 +0000)]
patch 8.2.3900: it is not easy to use a script-local function for an option
Problem: It is not easy to use a script-local function for an option.
Solution: recognize s: and <SID> at the start of the expression. (Yegappan
Lakshmanan, closes #9401)
Bram Moolenaar [Sat, 25 Dec 2021 22:10:42 +0000 (22:10 +0000)]
patch 8.2.3899: Vim9: test for map() on string fails
Problem: Vim9: test for map() on string fails.
Solution: Expect string return type.
Bram Moolenaar [Sat, 25 Dec 2021 22:00:49 +0000 (22:00 +0000)]
patch 8.2.3898: Vim9: not sufficient testing for variable initialization
Problem: Vim9: not sufficient testing for variable initialization.
Solution: Add another test case.
Bram Moolenaar [Sat, 25 Dec 2021 21:43:28 +0000 (21:43 +0000)]
patch 8.2.3897: Vim9: second argument of map() and filter() not checked
Problem: Vim9: the second argument of map() and filter() is not checked at
compile time.
Solution: Add more specific type check for the second argument.
Bram Moolenaar [Sat, 25 Dec 2021 19:58:22 +0000 (19:58 +0000)]
patch 8.2.3896: Vim9: no test for nested function not available later
Problem: Vim9: no test for nested function not available later.
Solution: Add a test.
Bram Moolenaar [Sat, 25 Dec 2021 19:43:44 +0000 (19:43 +0000)]
patch 8.2.3895: Vim9: confusing error when using function() with a number
Problem: Vim9: confusing error when using function() with a number.
Solution: Check for a function or string argument.
Bram Moolenaar [Sat, 25 Dec 2021 19:29:21 +0000 (19:29 +0000)]
patch 8.2.3894: Vim9: no proper type check for first argument of call()
Problem: Vim9: no proper type check for first argument of call().
Solution: Add specific type check.
Bram Moolenaar [Sat, 25 Dec 2021 18:23:24 +0000 (18:23 +0000)]
patch 8.2.3893: Vim9: many local variables are initialized with an instruction
Problem: Vim9: many local variables are initialized with an instruction.
Solution: Initialize local variables to zero to avoid the instructions.
Bram Moolenaar [Sat, 25 Dec 2021 15:13:18 +0000 (15:13 +0000)]
patch 8.2.3892: when modifyOtherKeys is used CTRL-C is not recognized
Problem: When modifyOtherKeys is used CTRL-C is not recognized.
Solution: Check for uppercase C as well, fix minimum length.
Yegappan Lakshmanan [Sat, 25 Dec 2021 11:20:30 +0000 (11:20 +0000)]
patch 8.2.3891: github CI: workflows may overlap
Problem: Github CI: workflows may overlap.
Solution: Cancel previous workflows when starting a new one. (Yegappan
Lakshmanan, closes #9400)
Bram Moolenaar [Fri, 24 Dec 2021 21:36:12 +0000 (21:36 +0000)]
patch 8.2.3890: Vim9: type check for using v: variables is basic
Problem: Vim9: type check for using v: variables is basic.
Solution: Specify a more precise type.
Yegappan Lakshmanan [Fri, 24 Dec 2021 20:47:38 +0000 (20:47 +0000)]
patch 8.2.3889: duplicate code for translating script-local function name
Problem: Duplicate code for translating script-local function name.
Solution: Move the code to get_scriptlocal_funcname(). (Yegappan Lakshmanan,
closes #9393)
Nir Lichtman [Fri, 24 Dec 2021 20:28:03 +0000 (20:28 +0000)]
patch 8.2.3888: the argument list may contain duplicates
Problem: The argument list may contain duplicates.
Solution: Add the :argdedeupe command. (Nir Lichtman, closes #6235)
Bram Moolenaar [Fri, 24 Dec 2021 19:54:52 +0000 (19:54 +0000)]
patch 8.2.3887: E1135 is used for two different errors
Problem: E1135 is used for two different errors.
Solution: Renumber one error.
Bram Moolenaar [Fri, 24 Dec 2021 19:24:47 +0000 (19:24 +0000)]
patch 8.2.3886: can define autocmd for every event by using "au!"
Problem: Can define autocmd for every event by using "au!".
Solution: Check if a command is present also for "au!".
Bram Moolenaar [Fri, 24 Dec 2021 18:58:46 +0000 (18:58 +0000)]
patch 8.2.3885: arglist test fails
Problem: Arglist test fails.
Solution: Adjust for locking the arglist for ":all".
Bram Moolenaar [Fri, 24 Dec 2021 18:11:27 +0000 (18:11 +0000)]
patch 8.2.3884: crash when clearing the argument list while using it
Problem: Crash when clearing the argument list while using it.
Solution: Lock the argument list for ":all".
Bram Moolenaar [Fri, 24 Dec 2021 16:46:14 +0000 (16:46 +0000)]
patch 8.2.3883: crash when switching to other regexp engine fails
Problem: Crash when switching to other regexp engine fails.
Solution: Check for regprog being NULL.
Bram Moolenaar [Fri, 24 Dec 2021 13:18:38 +0000 (13:18 +0000)]
Update runtime files
zeertzjq [Fri, 24 Dec 2021 12:02:43 +0000 (12:02 +0000)]
patch 8.2.3882: more duplicated code in f_getreginfo()
Problem: More duplicated code in f_getreginfo().
Solution: Also use getreg_get_regname(). (closes #9398)
h-east [Fri, 24 Dec 2021 11:57:06 +0000 (11:57 +0000)]
patch 8.2.3881: QNX: crash when compiled with GUI but using terminal
Problem: QNX: crash when compiled with GUI but using terminal.
Solution: Check the gui.in_use flag. (Hirohito Higashi, closes #9391)
Bram Moolenaar [Fri, 24 Dec 2021 11:33:56 +0000 (11:33 +0000)]
patch 8.2.3880: Solution filter files are not recognized
Problem: Solution filter files are not recognized.
Solution: Add pattern *.slnf and use json. (Doug Kearns)
Bram Moolenaar [Fri, 24 Dec 2021 10:48:30 +0000 (10:48 +0000)]
patch 8.2.3879: getreg() and getregtype() contain dead code
Problem: getreg() and getregtype() contain dead code.
Solution: Remove the needless check. (closes #9392) Also refactor to put
common code in a shared function.
Bram Moolenaar [Thu, 23 Dec 2021 21:14:37 +0000 (21:14 +0000)]
patch 8.2.3878: Vim9: debugger tries to read more lines than there are
Problem: Vim9: debugger tries to read more lines than there are.
Solution: Check the number of lines. (closes #9394)
Bram Moolenaar [Wed, 22 Dec 2021 21:40:33 +0000 (21:40 +0000)]
patch 8.2.3877: function does not abort after a type error in compare
Problem: Function does not abort after a type error in compare
Solution: Check getting number fails. (closes #9384)
zeertzjq [Wed, 22 Dec 2021 20:55:30 +0000 (20:55 +0000)]
patch 8.2.3876: 'cindent' does not recognize inline namespace
Problem: 'cindent' does not recognize inline namespace.
Solution: Skip over "inline" to find "namespace". (closes #9383)
Bram Moolenaar [Wed, 22 Dec 2021 20:29:09 +0000 (20:29 +0000)]
patch 8.2.3875: gcc complains about buffer overrun
Problem: gcc complains about buffer overrun.
Solution: Use mch_memmove() instead of STRCPY(). (John Marriott)
James McCoy [Wed, 22 Dec 2021 19:45:28 +0000 (19:45 +0000)]
patch 8.2.3874: cannot highlight the number column for a sign
Problem: Cannot highlight the number column for a sign.
Solution: Add the "numhl" argument. (James McCoy, closes #9381)
Bram Moolenaar [Wed, 22 Dec 2021 19:19:08 +0000 (19:19 +0000)]
patch 8.2.3873: go.mod files are not recognized
Problem: go.mod files are not recognized.
Solution: Check for the file name. (closes #9380)
Bram Moolenaar [Wed, 22 Dec 2021 18:45:37 +0000 (18:45 +0000)]
patch 8.2.3872: Vim9: finddir() and uniq() return types can be more specific
Problem: Vim9: finddir() and uniq() return types can be more specific.
Solution: Adjust the return type.
Yegappan Lakshmanan [Wed, 22 Dec 2021 18:19:26 +0000 (18:19 +0000)]
patch 8.2.3871: list.c contains code for dict and blob
Problem: List.c contains code for dict and blob.
Solution: Refactor to put code where it belongs. (Yegappan Lakshmanan,
closes #9386)
Nir Lichtman [Wed, 22 Dec 2021 15:21:15 +0000 (15:21 +0000)]
patch 8.2.3870: MS-Windows: wrong dir when using right-click context menu
Problem: MS-Windows: wrong working directory when opening two files with
right-click context menu. (Gabriel Dupras)
Solution: Use the working directory and pass it on to the process creation.
(Nir Lichtman, closes #9382, closes #8874)
Bram Moolenaar [Wed, 22 Dec 2021 13:18:39 +0000 (13:18 +0000)]
patch 8.2.3869: Vim9: type checking for "any" is inconsistent
Problem: Vim9: type checking for "any" is inconsistent.
Solution: Always use a runtime type check for using "any" for a more
specific type.
Bram Moolenaar [Tue, 21 Dec 2021 13:30:42 +0000 (13:30 +0000)]
patch 8.2.3868: Vim9: function test fails
Problem: Vim9: function test fails.
Solution: Add missing changes. Add test for earlier patch.
Yegappan Lakshmanan [Tue, 21 Dec 2021 13:19:42 +0000 (13:19 +0000)]
patch 8.2.3867: implementation of some list functions too complicated
Problem: Implementation of some list functions too complicated.
Solution: Refactor do_sort_uniq(), f_count() and extend() (Yegappan
Lakshmanan, closes #9378)
Bram Moolenaar [Tue, 21 Dec 2021 12:32:17 +0000 (12:32 +0000)]
patch 8.2.3866: Vim9: type checking global variables is inconsistent
Problem: Vim9: type checking global variables is inconsistent.
Solution: Use the "unknown" type in more places.
Bram Moolenaar [Tue, 21 Dec 2021 09:42:09 +0000 (09:42 +0000)]
patch 8.2.3865: Vim9: compiler complains about using "try" as a struct member
Problem: Vim9: compiler complains about using "try" as a struct member.
Solution: Rename "try" to "tryref".
Bram Moolenaar [Tue, 21 Dec 2021 09:12:23 +0000 (09:12 +0000)]
patch 8.2.3864: cannot disable requesting key codes from xterm
Problem: Cannot disable requesting key codes from xterm.
Solution: Add the 'xtermcodes' option, default on.
Bram Moolenaar [Mon, 20 Dec 2021 22:12:53 +0000 (22:12 +0000)]
patch 8.2.3863: various build flags accidentally enabled
Problem: Various build flags accidentally enabled.
Solution: Revert several lines in Makefile.
Bram Moolenaar [Mon, 20 Dec 2021 21:35:59 +0000 (21:35 +0000)]
patch 8.2.3862: crash on exit with EXITFREE and using win_execute()
Problem: Crash on exit with EXITFREE and using win_execute().
Solution: Also save and restore tp_topframe. (issue #9374)
Bram Moolenaar [Mon, 20 Dec 2021 15:53:13 +0000 (15:53 +0000)]
patch 8.2.3861: list of distributed files is outdated
Problem: List of distributed files is outdated.
Solution: Add new files.
Bram Moolenaar [Mon, 20 Dec 2021 15:04:29 +0000 (15:04 +0000)]
patch 8.2.3860: Vim9: codecov struggles with the file size
Problem: Vim9: codecov struggles with the file size.
Solution: Split vim9compile.c into four files.
Bram Moolenaar [Mon, 20 Dec 2021 12:25:03 +0000 (12:25 +0000)]
patch 8.2.3859: Vim9: some code lines not tested
Problem: Vim9: some code lines not tested.
Solution: Add a few specific tests.
Bram Moolenaar [Mon, 20 Dec 2021 10:55:35 +0000 (10:55 +0000)]
patch 8.2.3858: Vim9: not enough tests
Problem: Vim9: not enough tests.
Solution: Add tests for :try/:catch and :redir. Add missing type check.
Bram Moolenaar [Mon, 20 Dec 2021 09:36:27 +0000 (09:36 +0000)]
patch 8.2.3857: Vim9: inconsistent error for using function()
Problem: Vim9: inconsistent error for using function().
Solution: Use a runtime type check for the result of function().
(closes #8492)
Bram Moolenaar [Sun, 19 Dec 2021 21:34:05 +0000 (21:34 +0000)]
patch 8.2.3856: Vim9: not enough tests
Problem: Vim9: not enough tests.
Solution: Run more expression tests also with Vim9. Fix an uncovered
problem.
Yegappan Lakshmanan [Sun, 19 Dec 2021 19:19:31 +0000 (19:19 +0000)]
patch 8.2.3855: illegal memory access when displaying a blob
Problem: Illegal memory access when displaying a blob.
Solution: Append a NUL at the end. (Yegappan Lakshmanan, closes #9372)
Bram Moolenaar [Sun, 19 Dec 2021 18:33:23 +0000 (18:33 +0000)]
patch 8.2.3854: Vim9: inconsistent arguments for test functions
Problem: Vim9: inconsistent arguments for test functions.
Solution: When :def function and script have different arguments use a list
with two items instead of a separate function.
Bram Moolenaar [Sun, 19 Dec 2021 17:27:06 +0000 (17:27 +0000)]
patch 8.2.3853: Vim9: not enough tests
Problem: Vim9: not enough tests.
Solution: Run more existing tests for Vim9 script.
Bram Moolenaar [Sun, 19 Dec 2021 15:17:21 +0000 (15:17 +0000)]
patch 8.2.3852: Vim9: not enough tests
Problem: Vim9: not enough tests.
Solution: Also run existing tests for Vim9 script. Make errors more
consistent.
Bram Moolenaar [Sun, 19 Dec 2021 12:33:05 +0000 (12:33 +0000)]
patch 8.2.3851: Vim9: overhead when comparing string, dict or function
Problem: Vim9: overhead when comparing string, dict or function.
Solution: Call the intented compare function directly. Refactor to avoid
duplicated code.
Bram Moolenaar [Sun, 19 Dec 2021 11:06:35 +0000 (11:06 +0000)]
patch 8.2.3850: illegal memory access when displaying a partial
Problem: Illegal memory access when displaying a partial.
Solution: Terminate the string with a NUL. (closes #9371)
Yegappan Lakshmanan [Sun, 19 Dec 2021 10:35:15 +0000 (10:35 +0000)]
patch 8.2.3849: functions implementing reduce and map are too long
Problem: Functions implementing reduce and map are too long.
Solution: Use a function for each type of value. Add a few more test cases
and add to the help. (Yegappan Lakshmanan, closes #9370)
rbtnn [Sat, 18 Dec 2021 18:33:46 +0000 (18:33 +0000)]
patch 8.2.3848: cannot use reduce() for a string
Problem: Cannot use reduce() for a string.
Solution: Make reduce() work with a string. (Naruhiko Nishino, closes #9366)
Bram Moolenaar [Sat, 18 Dec 2021 16:54:31 +0000 (16:54 +0000)]
patch 8.2.3847: illegal memory access when using a lambda with an error
Problem: Illegal memory access when using a lambda with an error.
Solution: Avoid skipping over the NUL after a string.
zeertzjq [Sat, 18 Dec 2021 15:32:46 +0000 (15:32 +0000)]
patch 8.2.3846: no error when using control character for 'lcs' or 'fcs'
Problem: No error when using control character for 'lcs' or 'fcs'.
Solution: Use char2cells() to check the width. (closes #9369)
Dominique Pelle [Sat, 18 Dec 2021 12:40:52 +0000 (12:40 +0000)]
patch 8.2.3845: Vim9: test fails when the channel feature is missing
Problem: Vim9: test fails when the channel feature is missing.
Solution: Check for the channel feature. (Dominique Pellé, closes #9368)
Bram Moolenaar [Sat, 18 Dec 2021 12:31:33 +0000 (12:31 +0000)]
patch 8.2.3844: Vim9: no type error if assigning func(number) to func(string)
Problem: Vim9: no type error if assigning a value with type func(number) to
a variable of type func(string).
Solution: Use check_type_maybe(): return MAYBE if a runtime type check is
useful. (issue #8492)
James McCoy [Fri, 17 Dec 2021 20:52:57 +0000 (20:52 +0000)]
patch 8.2.3843: dep3patch files are not recognized
Problem: Dep3patch files are not recognized.
Solution: Recognize dep3patch files by their location and content. (James
McCoy, closes #9367)