]> granicus.if.org Git - vim/log
vim
3 years agopatch 8.2.3965: Vim9: no easy way to check if Vim9 script is supported v8.2.3965
Bram Moolenaar [Sat, 1 Jan 2022 12:17:00 +0000 (12:17 +0000)]
patch 8.2.3965: Vim9: no easy way to check if Vim9 script is supported

Problem:    Vim9: no easy way to check if Vim9 script is supported.
Solution:   Add has('vim9script').

3 years agopatch 8.2.3964: some common lisp and scheme files not recognized v8.2.3964
Alex Vear [Sat, 1 Jan 2022 11:38:42 +0000 (11:38 +0000)]
patch 8.2.3964: some common lisp and scheme files not recognized

Problem:    Some common lisp and scheme files not recognized.
Solution:   Recognize *.asd as lisp and *.sld as scheme. (Alex Vear,
            closes #9447)

3 years agopatch 8.2.3963: build failure with tiny and small features v8.2.3963
Bram Moolenaar [Sat, 1 Jan 2022 00:55:28 +0000 (00:55 +0000)]
patch 8.2.3963: build failure with tiny and small features

Problem:    Build failure with tiny and small features. (Tony Mechelynck)
Solution:   Adjust #ifdefs.

3 years agopatch 8.2.3962: build fails for missing error message v8.2.3962
Bram Moolenaar [Fri, 31 Dec 2021 23:15:53 +0000 (23:15 +0000)]
patch 8.2.3962: build fails for missing error message

Problem:    Build fails for missing error message.
Solution:   Add changes in missed file.

3 years agopatch 8.2.3961: error messages are spread out v8.2.3961
Bram Moolenaar [Fri, 31 Dec 2021 22:49:24 +0000 (22:49 +0000)]
patch 8.2.3961: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more errors to errors.h.

3 years agopatch 8.2.3960: error messages are spread out v8.2.3960
Bram Moolenaar [Fri, 31 Dec 2021 19:59:55 +0000 (19:59 +0000)]
patch 8.2.3960: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more errors to errors.h.

3 years agopatch 8.2.3959: error messages are spread out v8.2.3959
Bram Moolenaar [Fri, 31 Dec 2021 18:49:43 +0000 (18:49 +0000)]
patch 8.2.3959: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more errors to errors.h.

3 years agopatch 8.2.3958: build failure compiling xxd with "-std=c2x" v8.2.3958
Yegappan Lakshmanan [Fri, 31 Dec 2021 17:33:47 +0000 (17:33 +0000)]
patch 8.2.3958: build failure compiling xxd with "-std=c2x"

Problem:    Build failure compiling xxd with "-std=c2x".
Solution:   define _XOPEN_SOURCE. (Yegappan Lakshmanan, closes #9444)

3 years agopatch 8.2.3957: error messages are spread out v8.2.3957
Bram Moolenaar [Fri, 31 Dec 2021 17:25:48 +0000 (17:25 +0000)]
patch 8.2.3957: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more errors to errors.h.

3 years agopatch 8.2.3956: duplicate assignment v8.2.3956
zeertzjq [Fri, 31 Dec 2021 15:21:53 +0000 (15:21 +0000)]
patch 8.2.3956: duplicate assignment

Problem:    Duplicate assignment.
Solution:   Remove the second assignment. (closes #9442)

3 years agopatch 8.2.3955: error messages are spread out v8.2.3955
Bram Moolenaar [Fri, 31 Dec 2021 15:09:27 +0000 (15:09 +0000)]
patch 8.2.3955: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move more errors to errors.h.

3 years agopatch 8.2.3954: Vim9: no error for shadowing if script var is declared later v8.2.3954
Bram Moolenaar [Fri, 31 Dec 2021 14:06:45 +0000 (14:06 +0000)]
patch 8.2.3954: Vim9: no error for shadowing if script var is declared later

Problem:    Vim9: no error for shadowing if script var is declared later.
Solution:   Check argument names when compiling a function.

3 years agopatch 8.2.3953: insert completion code is too complicated v8.2.3953
Yegappan Lakshmanan [Fri, 31 Dec 2021 12:59:53 +0000 (12:59 +0000)]
patch 8.2.3953: insert completion code is too complicated

Problem:    Insert completion code is too complicated.
Solution:   More refactoring.  Move function arguments into a struct.
            (Yegappan Lakshmanan, closes #9437)

3 years agopatch 8.2.3952: first line not redrawn when adding lines to an empty buffer v8.2.3952
zeertzjq [Fri, 31 Dec 2021 12:19:22 +0000 (12:19 +0000)]
patch 8.2.3952: first line not redrawn when adding lines to an empty buffer

Problem:    First line not redrawn when adding lines to an empty buffer.
Solution:   Adjust the argument to appended_lines(). (closes #9439,
            closes #9438)

3 years agoUpdate runtime files
Bram Moolenaar [Thu, 30 Dec 2021 20:24:12 +0000 (20:24 +0000)]
Update runtime files

3 years agopatch 8.2.3951: Vim9: memory leak when text after a nested function v8.2.3951
Bram Moolenaar [Thu, 30 Dec 2021 17:09:05 +0000 (17:09 +0000)]
patch 8.2.3951: Vim9: memory leak when text after a nested function

Problem:    Vim9: memory leak when text after a nested function.
Solution:   Free the function if text is found after "enddef".

3 years agopatch 8.2.3950: going beyond the end of the line with /\%V v8.2.3950
Bram Moolenaar [Thu, 30 Dec 2021 15:29:18 +0000 (15:29 +0000)]
patch 8.2.3950: going beyond the end of the line with /\%V

Problem:    Going beyond the end of the line with /\%V.
Solution:   Check for valid column in getvcol().

3 years agopatch 8.2.3949: using freed memory with /\%V v8.2.3949
Bram Moolenaar [Thu, 30 Dec 2021 14:49:43 +0000 (14:49 +0000)]
patch 8.2.3949: using freed memory with /\%V

Problem:    Using freed memory with /\%V.
Solution:   Get the line again after getvvcol().

3 years agopatch 8.2.3948: Vim9: failure with partial with unknown argument count v8.2.3948
Bram Moolenaar [Thu, 30 Dec 2021 13:59:20 +0000 (13:59 +0000)]
patch 8.2.3948: Vim9: failure with partial with unknown argument count

Problem:    Vim9: failure with partial with unknown argument count.
Solution:   Do not copy argument types if there aren't any.

3 years agopatch 8.2.3947: unnecessary check for NULL pointer v8.2.3947
zeertzjq [Thu, 30 Dec 2021 13:45:57 +0000 (13:45 +0000)]
patch 8.2.3947: unnecessary check for NULL pointer

Problem:    Unnecessary check for NULL pointer.
Solution:   Remove the check. (closes #9434)

3 years agopatch 8.2.3946: when an internal error makes Vim exit the error is not seen v8.2.3946
Bram Moolenaar [Thu, 30 Dec 2021 13:32:09 +0000 (13:32 +0000)]
patch 8.2.3946: when an internal error makes Vim exit the error is not seen

Problem:    When an internal error makes Vim exit the error is not seen.
Solution:   Add the error to the test output.

3 years agopatch 8.2.3945: Vim9: partial variable argument types are wrong v8.2.3945
Bram Moolenaar [Thu, 30 Dec 2021 13:29:00 +0000 (13:29 +0000)]
patch 8.2.3945: Vim9: partial variable argument types are wrong

Problem:    Vim9: partial variable argument types are wrong, leading to a
            crash.
Solution:   When adjusting the argument count also adjust the argument types.
            (closes #9433)

3 years agopatch 8.2.3944: insert mode completion functions are too long v8.2.3944
Yegappan Lakshmanan [Thu, 30 Dec 2021 11:40:53 +0000 (11:40 +0000)]
patch 8.2.3944: insert mode completion functions are too long

Problem:    Insert mode completion functions are too long.
Solution:   Split up into multiple functions. (Yegappan Lakshmanan,
            closes #9431)

3 years agopatch 8.2.3943: compiler warning from gcc for uninitialized variable v8.2.3943
Bram Moolenaar [Thu, 30 Dec 2021 10:51:45 +0000 (10:51 +0000)]
patch 8.2.3943: compiler warning from gcc for uninitialized variable

Problem:    Compiler warning from gcc for uninitialized variable.
Solution:   Initialize variable. (closes #9429)

3 years agopatch 8.2.3942: Coverity reports a possible memory leak v8.2.3942
Bram Moolenaar [Thu, 30 Dec 2021 10:32:25 +0000 (10:32 +0000)]
patch 8.2.3942: Coverity reports a possible memory leak

Problem:    Coverity reports a possible memory leak.
Solution:   Free the array if allocation fails.

3 years agopatch 8.2.3941: SIGTSTP is not handled v8.2.3941
dbivolaru [Wed, 29 Dec 2021 19:41:47 +0000 (19:41 +0000)]
patch 8.2.3941: SIGTSTP is not handled

Problem:    SIGTSTP is not handled.
Solution:   Handle SIGTSTP like pressing CTRL-Z. (closes #9422)

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.