]> granicus.if.org Git - vim/log
vim
3 years agopatch 8.2.3997: Vim9: not enough testing for extend() and map() v8.2.3997
Bram Moolenaar [Tue, 4 Jan 2022 15:54:38 +0000 (15:54 +0000)]
patch 8.2.3997: Vim9: not enough testing for extend() and map()

Problem:    Vim9: not enough testing for extend() and map().
Solution:   Add more test cases.  Fix uncovered problems.  Remove unused type
            fields.

3 years agopatch 8.2.3996: Vim9: type checking lacks information about declared type v8.2.3996
Bram Moolenaar [Tue, 4 Jan 2022 15:17:03 +0000 (15:17 +0000)]
patch 8.2.3996: Vim9: type checking lacks information about declared type

Problem:    Vim9: type checking for list and dict lacks information about
            declared type.
Solution:   Add dv_decl_type and lv_decl_type.  Refactor the type stack to
            store two types in each entry.

3 years agopatch 8.2.3995: not all sshconfig files are detected as such v8.2.3995
David Auer [Mon, 3 Jan 2022 17:32:46 +0000 (17:32 +0000)]
patch 8.2.3995: not all sshconfig files are detected as such

Problem:    Not all sshconfig files are detected as such.
Solution:   Adjust the patterns used for sshconfig detection. (David Auer,
            closes #9322)

3 years agopatch 8.2.3994: Vim9: extend() complains about type when it was not declared v8.2.3994
Bram Moolenaar [Mon, 3 Jan 2022 16:52:28 +0000 (16:52 +0000)]
patch 8.2.3994: Vim9: extend() complains about type when it was not declared

Problem:    Vim9: extend() complains about the type even when it was not
            declared.
Solution:   Only check the list or dict type when it was declared.

3 years agopatch 8.2.3993: when recording a change in Select mode char appears twice v8.2.3993
Bram Moolenaar [Mon, 3 Jan 2022 13:47:50 +0000 (13:47 +0000)]
patch 8.2.3993: when recording a change in Select mode char appears twice

Problem:    When recording a change in Select mode the first typed character
            appears twice.
Solution:   When putting the character back into typeahead remove it from
            recorded characters. (closes #9462)

3 years agopatch 8.2.3992: wrong local-additions in the help with language mix v8.2.3992
h-east [Mon, 3 Jan 2022 12:53:24 +0000 (12:53 +0000)]
patch 8.2.3992: wrong local-additions in the help with language mix

Problem:    Wrong local-additions in the help with language mix.
Solution:   Adjust how the local additions list is generated. (Hirohito
            Higashi, closes #9464)

3 years agopatch 8.2.3991: Vim9: error when extending dict<any> v8.2.3991
Bram Moolenaar [Mon, 3 Jan 2022 12:28:03 +0000 (12:28 +0000)]
patch 8.2.3991: Vim9: error when extending dict<any>

Problem:    Vim9: error when extending dict<any> with another type that it was
            initialized with.
Solution:   Also set the type for dict<any> if the initializer has a more
            specific type. (closes #9461)

3 years agopatch 8.2.3990: testing wrong operator v8.2.3990
naohiro ono [Mon, 3 Jan 2022 11:15:47 +0000 (11:15 +0000)]
patch 8.2.3990: testing wrong operator

Problem:    Testing wrong operator.
Solution:   Test "g@" instead of "r_". (Naohiro Ono, closes #9463)

3 years agopatch 8.2.3989: some insert completion code is not tested v8.2.3989
Yegappan Lakshmanan [Mon, 3 Jan 2022 11:03:48 +0000 (11:03 +0000)]
patch 8.2.3989: some insert completion code is not tested

Problem:    Some insert completion code is not tested.
Solution:   Add a few tests.  Refactor thesaurus completion. (Yegappan
            Lakshmanan, closes #9460)

3 years agopatch 8.2.3988: tiny build fails v8.2.3988
Bram Moolenaar [Sun, 2 Jan 2022 21:46:29 +0000 (21:46 +0000)]
patch 8.2.3988: tiny build fails

Problem:    Tiny build fails.
Solution:   Fix misplaced #ifdef.

3 years agopatch 8.2.3987: error messages are spread out v8.2.3987
Bram Moolenaar [Sun, 2 Jan 2022 21:26:16 +0000 (21:26 +0000)]
patch 8.2.3987: error messages are spread out

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

3 years agopatch 8.2.3986: error messages are spread out v8.2.3986
Bram Moolenaar [Sun, 2 Jan 2022 20:20:45 +0000 (20:20 +0000)]
patch 8.2.3986: error messages are spread out

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

3 years agopatch 8.2.3985: error messages are spread out v8.2.3985
Bram Moolenaar [Sun, 2 Jan 2022 19:25:26 +0000 (19:25 +0000)]
patch 8.2.3985: error messages are spread out

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

3 years agopatch 8.2.3984: debugger test fails v8.2.3984
Bram Moolenaar [Sun, 2 Jan 2022 17:28:57 +0000 (17:28 +0000)]
patch 8.2.3984: debugger test fails

Problem:    Debugger test fails.
Solution:   Adjust the test for modified debugging of a for loop.

3 years agopatch 8.2.3983: error messages are spread out v8.2.3983
Bram Moolenaar [Sun, 2 Jan 2022 17:00:40 +0000 (17:00 +0000)]
patch 8.2.3983: error messages are spread out

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

3 years agopatch 8.2.3982: some lines of code not covered by tests v8.2.3982
Dominique Pelle [Sun, 2 Jan 2022 16:16:33 +0000 (16:16 +0000)]
patch 8.2.3982: some lines of code not covered by tests

Problem:    Some lines of code not covered by tests.
Solution:   Add a few more test cases. (Dominique Pellé, closes #9453)

3 years agopatch 8.2.3981: Vim9: debugging a for loop doesn't stop before it starts v8.2.3981
Bram Moolenaar [Sun, 2 Jan 2022 14:08:18 +0000 (14:08 +0000)]
patch 8.2.3981: Vim9: debugging a for loop doesn't stop before it starts

Problem:    Vim9: debugging a for loop doesn't stop before it starts.
Solution:   Keep the DEBUG instruction before the expression is evaluated.
            (closes #9456)

3 years agopatch 8.2.3980: if 'operatorfunc' invokes an operator Visual mode is changed v8.2.3980
Bram Moolenaar [Sun, 2 Jan 2022 13:05:45 +0000 (13:05 +0000)]
patch 8.2.3980: if 'operatorfunc' invokes an operator Visual mode is changed

Problem:    If 'operatorfunc' invokes an operator the remembered Visual mode
            may be changed. (Naohiro Ono)
Solution:   Save and restore the information for redoing the Visual area.
            (closes #9455)

3 years agopatch 8.2.3979: Vim9: the feature is not mentioned in the right places v8.2.3979
Bram Moolenaar [Sun, 2 Jan 2022 12:06:33 +0000 (12:06 +0000)]
patch 8.2.3979: Vim9: the feature is not mentioned in the right places

Problem:    Vim9: the feature is not mentioned in the right places.
Solution:   Add +vim9script to the help and :version output.

3 years agopatch 8.2.3978: build error when using dynamycally loaded Python 3 v8.2.3978
Bram Moolenaar [Sun, 2 Jan 2022 01:04:09 +0000 (01:04 +0000)]
patch 8.2.3978: build error when using dynamycally loaded Python 3

Problem:    Build error when using dynamycally loaded Python 3.
Solution:   Adjust #ifdef.

3 years agopatch 8.2.3977: error messages are spread out v8.2.3977
Bram Moolenaar [Sat, 1 Jan 2022 21:59:18 +0000 (21:59 +0000)]
patch 8.2.3977: error messages are spread out

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

3 years agopatch 8.2.3976: FEARG_LAST is never used v8.2.3976
Bram Moolenaar [Sat, 1 Jan 2022 19:42:16 +0000 (19:42 +0000)]
patch 8.2.3976: FEARG_LAST is never used

Problem:    FEARG_LAST is never used. (Dominique Pellé)
Solution:   Remove FEARG_LAST and the related code.

3 years agopatch 8.2.3975: error messages are spread out v8.2.3975
Bram Moolenaar [Sat, 1 Jan 2022 19:33:50 +0000 (19:33 +0000)]
patch 8.2.3975: error messages are spread out

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

3 years agopatch 8.2.3974: Vim9: LISTAPPEND instruction does not check for a locked list v8.2.3974
Bram Moolenaar [Sat, 1 Jan 2022 18:29:21 +0000 (18:29 +0000)]
patch 8.2.3974: Vim9: LISTAPPEND instruction does not check for a locked list

Problem:    Vim9: LISTAPPEND instruction does not check for a locked list.
Solution:   Check whether the list is locked. (closes #9452)

3 years agopatch 8.2.3973: tiny build fails v8.2.3973
Bram Moolenaar [Sat, 1 Jan 2022 16:31:48 +0000 (16:31 +0000)]
patch 8.2.3973: tiny build fails

Problem:    Tiny build fails.
Solution:   Adjust #ifdefs

3 years agopatch 8.2.3972: error messages are spread out v8.2.3972
Bram Moolenaar [Sat, 1 Jan 2022 16:21:00 +0000 (16:21 +0000)]
patch 8.2.3972: error messages are spread out

Problem:    Error messages are spread out.
Solution:   Move the last errors from globals.h to errors.h.

3 years agopatch 8.2.3971: build fails v8.2.3971
Bram Moolenaar [Sat, 1 Jan 2022 16:01:23 +0000 (16:01 +0000)]
patch 8.2.3971: build fails

Problem:    Build fails.
Solution:   Use the right error message name.

3 years agopatch 8.2.3970: error messages are spread out v8.2.3970
Bram Moolenaar [Sat, 1 Jan 2022 15:58:22 +0000 (15:58 +0000)]
patch 8.2.3970: error messages are spread out

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

3 years agopatch 8.2.3969: value of MAXCOL not available in Vim script v8.2.3969
naohiro ono [Sat, 1 Jan 2022 14:59:44 +0000 (14:59 +0000)]
patch 8.2.3969: value of MAXCOL not available in Vim script

Problem:    Value of MAXCOL not available in Vim script.
Solution:   Add v:maxcol. (Naohiro Ono, closes #9451)

3 years agopatch 8.2.3968: build failure v8.2.3968
Bram Moolenaar [Sat, 1 Jan 2022 14:25:55 +0000 (14:25 +0000)]
patch 8.2.3968: build failure

Problem:    Build failure.
Solution:   Add missing changes.

3 years agopatch 8.2.3967: error messages are spread out v8.2.3967
Bram Moolenaar [Sat, 1 Jan 2022 14:19:49 +0000 (14:19 +0000)]
patch 8.2.3967: error messages are spread out

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

3 years agopatch 8.2.3966: when using feedkeys() abbreviations may be blocked v8.2.3966
Bram Moolenaar [Sat, 1 Jan 2022 12:42:56 +0000 (12:42 +0000)]
patch 8.2.3966: when using feedkeys() abbreviations may be blocked

Problem:    When using feedkeys() abbreviations may be blocked.
Solution:   Reset tb_no_abbr_cnt when running out of characters.
            (closes #9448)

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)