]> granicus.if.org Git - vim/log
vim
3 years agopatch 8.2.3940: match highlight disappears when doing incsearch for ":s/pat" v8.2.3940
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)

3 years agopatch 8.2.3939: MS-Windows: fnamemodify('', ':p') does not work v8.2.3939
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)

3 years agopatch 8.2.3938: line comment start is also found in a string v8.2.3938
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.

3 years agopatch 8.2.3937: Insert mode completion function is too long v8.2.3937
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)

3 years agopatch 8.2.3936: no proper test for maintaining change mark in diff mode v8.2.3936
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)

3 years agopatch 8.2.3935: CTRL-U in Insert mode does not fix the indent v8.2.3935
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.

3 years agopatch 8.2.3934: repeating line comment is undesired for "O" command v8.2.3934
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)

3 years agopatch 8.2.3933: after ":cd" fails ":cd -" is incorrect v8.2.3933
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)

3 years agopatch 8.2.3932: C line comment not formatted properly v8.2.3932
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.

3 years agopatch 8.2.3931: Coverity reports a memory leak v8.2.3931
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.

3 years agopatch 8.2.3930: getcmdline() argument has a misleading type v8.2.3930
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.

3 years agopatch 8.2.3929: using unititialized variable v8.2.3929
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.

3 years agopatch 8.2.3928: heredoc test fails v8.2.3928
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.

3 years agopatch 8.2.3927: Vim9: double free when using lambda v8.2.3927
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.

3 years agopatch 8.2.3926: build failure without the 'autochdir' option v8.2.3926
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.

3 years agopatch 8.2.3925: diff mode confused by NUL bytes v8.2.3925
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)

3 years agopatch 8.2.3924: Vim9: no error if something follows :enddef v8.2.3924
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.

3 years agopatch 8.2.3923: Vim9: double free with split argument list in nested function v8.2.3923
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.

3 years agopatch 8.2.3922: cannot build with dynamic Ruby 3.1 v8.2.3922
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)

3 years agopatch 8.2.3921: the way xdiff is used is inefficient v8.2.3921
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)

3 years agopatch 8.2.3920: restoring directory after using another window is inefficient v8.2.3920
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.

3 years agopatch 8.2.3919: Vim9: wrong argument for append() results in two errors v8.2.3919
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().

3 years agopatch 8.2.3918: function list test fails v8.2.3918
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.

3 years agoUpdate runtime files
Bram Moolenaar [Mon, 27 Dec 2021 21:33:07 +0000 (21:33 +0000)]
Update runtime files

3 years agopatch 8.2.3917: the eval.txt help file is way too big v8.2.3917
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.

3 years agopatch 8.2.3916: no error for passing an invalid line number to append() v8.2.3916
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)

3 years agopatch 8.2.3915: illegal memory access when completing with invalid bytes v8.2.3915
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.

3 years agopatch 8.2.3914: various spelling mistakes in comments v8.2.3914
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)

3 years agopatch 8.2.3913: help for expressions does not mention Vim9 syntax v8.2.3913
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.

3 years agopatch 8.2.3912: the ins_complete() function is much too long v8.2.3912
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)

3 years agopatch 8.2.3911: Vim9: type check for filter() does not accept unknown v8.2.3911
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)

3 years agopatch 8.2.3910: when compare function of sort() fails it does not abort v8.2.3910
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.

3 years agopatch 8.2.3909: Containerfile using prefix name not recognized v8.2.3909
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.*.

3 years agopatch 8.2.3908: cannot use a script-local function for 'foldtext' v8.2.3908
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)

3 years agopatch 8.2.3907: error messages are spread out v8.2.3907
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.

3 years agopatch 8.2.3906: Vim9 help still contains "under development" warnings v8.2.3906
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.

3 years agopatch 8.2.3905: Dockerfile using prefix name not recognized v8.2.3905
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)

3 years agopatch 8.2.3904: Vim9: skip expression type is not checked at compile time v8.2.3904
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.

3 years agopatch 8.2.3903: "gM" does not count tabs as expected v8.2.3903
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)

3 years agopatch 8.2.3902: Vim9: double free with nested :def function v8.2.3902
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.

3 years agopatch 8.2.3901: Vim9: Cannot set 'cpo' in main .vimrc if using Vim9 script v8.2.3901
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.

3 years agopatch 8.2.3900: it is not easy to use a script-local function for an option v8.2.3900
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)

3 years agopatch 8.2.3899: Vim9: test for map() on string fails v8.2.3899
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.

3 years agopatch 8.2.3898: Vim9: not sufficient testing for variable initialization v8.2.3898
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.

3 years agopatch 8.2.3897: Vim9: second argument of map() and filter() not checked v8.2.3897
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.

3 years agopatch 8.2.3896: Vim9: no test for nested function not available later v8.2.3896
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.

3 years agopatch 8.2.3895: Vim9: confusing error when using function() with a number v8.2.3895
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.

3 years agopatch 8.2.3894: Vim9: no proper type check for first argument of call() v8.2.3894
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.

3 years agopatch 8.2.3893: Vim9: many local variables are initialized with an instruction v8.2.3893
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.

3 years agopatch 8.2.3892: when modifyOtherKeys is used CTRL-C is not recognized v8.2.3892
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.

3 years agopatch 8.2.3891: github CI: workflows may overlap v8.2.3891
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)

3 years agopatch 8.2.3890: Vim9: type check for using v: variables is basic v8.2.3890
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.

3 years agopatch 8.2.3889: duplicate code for translating script-local function name v8.2.3889
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)

3 years agopatch 8.2.3888: the argument list may contain duplicates v8.2.3888
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)

3 years agopatch 8.2.3887: E1135 is used for two different errors v8.2.3887
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.

3 years agopatch 8.2.3886: can define autocmd for every event by using "au!" v8.2.3886
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!".

3 years agopatch 8.2.3885: arglist test fails v8.2.3885
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".

3 years agopatch 8.2.3884: crash when clearing the argument list while using it v8.2.3884
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".

3 years agopatch 8.2.3883: crash when switching to other regexp engine fails v8.2.3883
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.

3 years agoUpdate runtime files
Bram Moolenaar [Fri, 24 Dec 2021 13:18:38 +0000 (13:18 +0000)]
Update runtime files

3 years agopatch 8.2.3882: more duplicated code in f_getreginfo() v8.2.3882
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)

3 years agopatch 8.2.3881: QNX: crash when compiled with GUI but using terminal v8.2.3881
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)

3 years agopatch 8.2.3880: Solution filter files are not recognized v8.2.3880
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)

3 years agopatch 8.2.3879: getreg() and getregtype() contain dead code v8.2.3879
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.

3 years agopatch 8.2.3878: Vim9: debugger tries to read more lines than there are v8.2.3878
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)

3 years agopatch 8.2.3877: function does not abort after a type error in compare v8.2.3877
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)

3 years agopatch 8.2.3876: 'cindent' does not recognize inline namespace v8.2.3876
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)

3 years agopatch 8.2.3875: gcc complains about buffer overrun v8.2.3875
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)

3 years agopatch 8.2.3874: cannot highlight the number column for a sign v8.2.3874
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)

3 years agopatch 8.2.3873: go.mod files are not recognized v8.2.3873
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)

3 years agopatch 8.2.3872: Vim9: finddir() and uniq() return types can be more specific v8.2.3872
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.

3 years agopatch 8.2.3871: list.c contains code for dict and blob v8.2.3871
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)

3 years agopatch 8.2.3870: MS-Windows: wrong dir when using right-click context menu v8.2.3870
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)

3 years agopatch 8.2.3869: Vim9: type checking for "any" is inconsistent v8.2.3869
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.

3 years agopatch 8.2.3868: Vim9: function test fails v8.2.3868
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.

3 years agopatch 8.2.3867: implementation of some list functions too complicated v8.2.3867
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)

3 years agopatch 8.2.3866: Vim9: type checking global variables is inconsistent v8.2.3866
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.

3 years agopatch 8.2.3865: Vim9: compiler complains about using "try" as a struct member v8.2.3865
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".

3 years agopatch 8.2.3864: cannot disable requesting key codes from xterm v8.2.3864
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.

3 years agopatch 8.2.3863: various build flags accidentally enabled v8.2.3863
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.

3 years agopatch 8.2.3862: crash on exit with EXITFREE and using win_execute() v8.2.3862
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)

3 years agopatch 8.2.3861: list of distributed files is outdated v8.2.3861
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.

3 years agopatch 8.2.3860: Vim9: codecov struggles with the file size v8.2.3860
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.

3 years agopatch 8.2.3859: Vim9: some code lines not tested v8.2.3859
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.

3 years agopatch 8.2.3858: Vim9: not enough tests v8.2.3858
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.

3 years agopatch 8.2.3857: Vim9: inconsistent error for using function() v8.2.3857
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)

3 years agopatch 8.2.3856: Vim9: not enough tests v8.2.3856
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.

3 years agopatch 8.2.3855: illegal memory access when displaying a blob v8.2.3855
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)

3 years agopatch 8.2.3854: Vim9: inconsistent arguments for test functions v8.2.3854
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.

3 years agopatch 8.2.3853: Vim9: not enough tests v8.2.3853
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.

3 years agopatch 8.2.3852: Vim9: not enough tests v8.2.3852
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.

3 years agopatch 8.2.3851: Vim9: overhead when comparing string, dict or function v8.2.3851
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.

3 years agopatch 8.2.3850: illegal memory access when displaying a partial v8.2.3850
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)

3 years agopatch 8.2.3849: functions implementing reduce and map are too long v8.2.3849
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)

3 years agopatch 8.2.3848: cannot use reduce() for a string v8.2.3848
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)

3 years agopatch 8.2.3847: illegal memory access when using a lambda with an error v8.2.3847
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.

3 years agopatch 8.2.3846: no error when using control character for 'lcs' or 'fcs' v8.2.3846
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)

3 years agopatch 8.2.3845: Vim9: test fails when the channel feature is missing v8.2.3845
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)

3 years agopatch 8.2.3844: Vim9: no type error if assigning func(number) to func(string) v8.2.3844
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)

3 years agopatch 8.2.3843: dep3patch files are not recognized v8.2.3843
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)