]> granicus.if.org Git - vim/log
vim
3 years agopatch 8.2.4064: foam files are not detected v8.2.4064
Elwardi [Tue, 11 Jan 2022 18:14:23 +0000 (18:14 +0000)]
patch 8.2.4064: foam files are not detected

Problem:    Foam files are not detected.
Solution:   Detect the foam filetype by the path and file contents. (Mohammed
            Elwardi Fadeli, closes #9501)

3 years agopatch 8.2.4063: Vim9: exported function in autoload script not found v8.2.4063
Bram Moolenaar [Tue, 11 Jan 2022 15:24:05 +0000 (15:24 +0000)]
patch 8.2.4063: Vim9: exported function in autoload script not found

Problem:    Vim9: exported function in autoload script not found. (Yegappan
            Lakshmanan)
Solution:   Use the autoload prefix to search for the function.

3 years agopatch 8.2.4062: match highlighting of tab too short v8.2.4062
Bram Moolenaar [Tue, 11 Jan 2022 13:14:54 +0000 (13:14 +0000)]
patch 8.2.4062: match highlighting of tab too short

Problem:    Match highlighting of tab too short.
Solution:   Do not stop match highlighting if on a Tab. (Christian Brabandt,
            closes #9507, closes #9500)

3 years agopatch 8.2.4061: codecov bash script is deprecated v8.2.4061
ichizok [Tue, 11 Jan 2022 13:05:26 +0000 (13:05 +0000)]
patch 8.2.4061: codecov bash script is deprecated

Problem:    Codecov bash script is deprecated.
Solution:   Use the codecov action. (Ozaki Kiichi, closes #9505)

3 years agopatch 8.2.4060: win_execute() slow on systems where getcwd()/chdir() is slow v8.2.4060
Bram Moolenaar [Tue, 11 Jan 2022 12:37:20 +0000 (12:37 +0000)]
patch 8.2.4060: win_execute() slow on systems where getcwd()/chdir() is slow

Problem:    win_execute() is slow on systems where getcwd() or chdir() is
            slow. (Rick Howe)
Solution:   Avoid using getcwd() and chdir() if no local directory is used and
            'acd' is not set. (closes #9504)

3 years agopatch 8.2.4059: Vim9: an expression of a map cannot access script-local items v8.2.4059
Bram Moolenaar [Tue, 11 Jan 2022 11:58:19 +0000 (11:58 +0000)]
patch 8.2.4059: Vim9: an expression of a map cannot access script-local items

Problem:    Vim9: an expression of a map cannot access script-local items.
            (Maxim Kim)
Solution:   Use the script ID of where the map was defined.

3 years agopatch 8.2.4058: Vim9: import test failure in wrong line v8.2.4058
Bram Moolenaar [Mon, 10 Jan 2022 21:39:03 +0000 (21:39 +0000)]
patch 8.2.4058: Vim9: import test failure in wrong line

Problem:    Vim9: import test failure in wrong line.
Solution:   Adjust line number.

3 years agopatch 8.2.4057: Vim9: not fully implementing the autoload mechanism v8.2.4057
Bram Moolenaar [Mon, 10 Jan 2022 21:29:57 +0000 (21:29 +0000)]
patch 8.2.4057: Vim9: not fully implementing the autoload mechanism

Problem:    Vim9: not fully implementing the autoload mechanism.
Solution:   Allow for exporting a legacy function.  Improve test coverage.

3 years agopatch 8.2.4056: Vim9: memory leak when exporting function in autoload script v8.2.4056
Bram Moolenaar [Mon, 10 Jan 2022 19:21:06 +0000 (19:21 +0000)]
patch 8.2.4056: Vim9: memory leak when exporting function in autoload script

Problem:    Vim9: memory leak when exporting function in autoload script.
Solution:   Fee the name if replacing it.

3 years agopatch 8.2.4055: Vim9: line break in expression causes v:errmsg to be fillec v8.2.4055
Bram Moolenaar [Mon, 10 Jan 2022 18:50:52 +0000 (18:50 +0000)]
patch 8.2.4055: Vim9: line break in expression causes v:errmsg to be fillec

Problem:    Vim9: line break in expression causes v:errmsg to be filled.
            (Yegappan Lakshmanan)
Solution:   Do not give an error when skipping over an expression.

3 years agopatch 8.2.4054: Vim9 script test fails v8.2.4054
Bram Moolenaar [Mon, 10 Jan 2022 18:42:52 +0000 (18:42 +0000)]
patch 8.2.4054: Vim9 script test fails

Problem:    Vim9 script test fails.
Solution:   Add missing change.

3 years agopatch 8.2.4053: Vim9: autoload mechanism doesn't fully work yet v8.2.4053
Bram Moolenaar [Mon, 10 Jan 2022 18:08:00 +0000 (18:08 +0000)]
patch 8.2.4053: Vim9: autoload mechanism doesn't fully work yet

Problem:    Vim9: autoload mechanism doesn't fully work yet.
Solution:   Define functions and variables with their autoload name, add the
            prefix when calling a function, find the variable in the table of
            script variables.

3 years agopatch 8.2.4052: not easy to resize a window from a plugin v8.2.4052
Daniel Steinberg [Mon, 10 Jan 2022 13:36:34 +0000 (13:36 +0000)]
patch 8.2.4052: not easy to resize a window from a plugin

Problem:    Not easy to resize a window from a plugin.
Solution:   Add win_move_separator() and win_move_statusline() functions.
            (Daniel Steinberg, closes #9486)

3 years agopatch 8.2.4051: compiler complains about possibly uninitialized variable v8.2.4051
Bram Moolenaar [Mon, 10 Jan 2022 11:26:33 +0000 (11:26 +0000)]
patch 8.2.4051: compiler complains about possibly uninitialized variable

Problem:    Compiler complains about possibly uninitialized variable.
Solution:   Add code to avoid a compiler warning. (John Marriott)

3 years agopatch 8.2.4050: Vim9: need to prefix every item in an autoload script v8.2.4050
Bram Moolenaar [Sun, 9 Jan 2022 21:36:37 +0000 (21:36 +0000)]
patch 8.2.4050: Vim9: need to prefix every item in an autoload script

Problem:    Vim9: need to prefix every item in an autoload script.
Solution:   First step in supporting "vim9script autoload" and "import
            autoload".

3 years agopatch 8.2.4049: Vim9: reading before the start of the line with "$" v8.2.4049
Bram Moolenaar [Sun, 9 Jan 2022 13:36:28 +0000 (13:36 +0000)]
patch 8.2.4049: Vim9: reading before the start of the line with "$"

Problem:    Vim9: reading before the start of the line with "$" by itself.
Solution:   Do not subtract one when reporting the error.

3 years agopatch 8.2.4048: gcc complains about use of "%p" in printf v8.2.4048
Dominique Pelle [Sun, 9 Jan 2022 12:57:48 +0000 (12:57 +0000)]
patch 8.2.4048: gcc complains about use of "%p" in printf

Problem:    gcc complains about use of "%p" in printf.
Solution:   Add (void *) typecast. (Dominique Pellé, closes #9494)

3 years agopatch 8.2.4047: depending on the build features error messages are unused v8.2.4047
Dominique Pelle [Sun, 9 Jan 2022 12:49:31 +0000 (12:49 +0000)]
patch 8.2.4047: depending on the build features error messages are unused

Problem:    Depending on the build features error messages are unused.
Solution:   Add #ifdefs. (Dominique Pellé, closes #9493)

3 years agoUpdate runtime files
Bram Moolenaar [Sat, 8 Jan 2022 21:51:59 +0000 (21:51 +0000)]
Update runtime files

3 years agopatch 8.2.4046: some error messages not in the right place v8.2.4046
Bram Moolenaar [Sat, 8 Jan 2022 21:38:52 +0000 (21:38 +0000)]
patch 8.2.4046: some error messages not in the right place

Problem:    Some error messages not in the right place.
Solution:   Adjust the errors file.  Fix typo.

3 years agopatch 8.2.4045: some global functions are only used in one file v8.2.4045
Yegappan Lakshmanan [Sat, 8 Jan 2022 18:43:40 +0000 (18:43 +0000)]
patch 8.2.4045: some global functions are only used in one file

Problem:    Some global functions are only used in one file.
Solution:   Make the functions static. (Yegappan Lakshmanan, closes #9492)

3 years agopatch 8.2.4044: Vim9: no error when importing the same script twice v8.2.4044
Bram Moolenaar [Sat, 8 Jan 2022 17:03:55 +0000 (17:03 +0000)]
patch 8.2.4044: Vim9: no error when importing the same script twice

Problem:    Vim9: no error when importing the same script twice.
Solution:   Give an error, unless it is a reload.

3 years agopatch 8.2.4043: using int for second argument of ga_init2() v8.2.4043
Bram Moolenaar [Sat, 8 Jan 2022 16:19:22 +0000 (16:19 +0000)]
patch 8.2.4043: using int for second argument of ga_init2()

Problem:    Using int for second argument of ga_init2().
Solution:   Remove unnessary type cast (int) when using sizeof().

3 years agopatch 8.2.4042: Vim9: build error v8.2.4042
Bram Moolenaar [Sat, 8 Jan 2022 16:02:59 +0000 (16:02 +0000)]
patch 8.2.4042: Vim9: build error

Problem:    Vim9: build error.
Solution:   Use grow array instead of character pointer.

3 years agopatch 8.2.4041: using unitialized pointer v8.2.4041
Bram Moolenaar [Sat, 8 Jan 2022 15:44:22 +0000 (15:44 +0000)]
patch 8.2.4041: using unitialized pointer

Problem:    Using unitialized pointer.
Solution:   Store "ht" when variable is in another script.

3 years agopatch 8.2.4040: keeping track of allocated lines is too complicated v8.2.4040
Bram Moolenaar [Sat, 8 Jan 2022 15:39:39 +0000 (15:39 +0000)]
patch 8.2.4040: keeping track of allocated lines is too complicated

Problem:    Keeping track of allocated lines in user functions is too
            complicated.
Solution:   Instead of freeing individual lines keep them all until the end.

3 years agopatch 8.2.4039: the xdiff library is linked in even when not used v8.2.4039
Bram Moolenaar [Sat, 8 Jan 2022 13:36:57 +0000 (13:36 +0000)]
patch 8.2.4039: the xdiff library is linked in even when not used

Problem:    The xdiff library is linked in even when not used.
Solution:   Use configure to decide whether xdiff object files are included.

3 years agopatch 8.2.4038: various code not used when features are disabled v8.2.4038
Dominique Pelle [Sat, 8 Jan 2022 12:41:16 +0000 (12:41 +0000)]
patch 8.2.4038: various code not used when features are disabled

Problem:    Various code not used when features are disabled.
Solution:   Add #ifdefs. (Dominique Pellé, closes #9491)

3 years agopatch 8.2.4037: Insert mode completion is insufficiently tested v8.2.4037
Yegappan Lakshmanan [Sat, 8 Jan 2022 10:38:48 +0000 (10:38 +0000)]
patch 8.2.4037: Insert mode completion is insufficiently tested

Problem:    Insert mode completion is insufficiently tested.
Solution:   Add more tests.  Fix uncovered memory leak. (Yegappan Lakshmanan,
            closes #9489)

3 years agopatch 8.2.4036: Vim9: script test file is getting too long v8.2.4036
Bram Moolenaar [Fri, 7 Jan 2022 21:39:52 +0000 (21:39 +0000)]
patch 8.2.4036: Vim9: script test file is getting too long

Problem:    Vim9: script test file is getting too long.
Solution:   Split the import/export functionality to a separate file.

3 years agopatch 8.2.4035: timer triggered at the debug prompt may cause trouble v8.2.4035
Bram Moolenaar [Fri, 7 Jan 2022 20:40:08 +0000 (20:40 +0000)]
patch 8.2.4035: timer triggered at the debug prompt may cause trouble

Problem:    Timer triggered at the debug prompt may cause trouble.
Solution:   Do not trigger any timer at the debug prompt. (closes #9481)

3 years agopatch 8.2.4034: Coverity warns for possibly using a NULL pointer v8.2.4034
Bram Moolenaar [Fri, 7 Jan 2022 20:18:16 +0000 (20:18 +0000)]
patch 8.2.4034: Coverity warns for possibly using a NULL pointer

Problem:    Coverity warns for possibly using a NULL pointer.
Solution:   Check v_partial is not NULL.

3 years agopatch 8.2.4033: running filetype tests leaves directory behind v8.2.4033
zeertzjq [Fri, 7 Jan 2022 20:07:46 +0000 (20:07 +0000)]
patch 8.2.4033: running filetype tests leaves directory behind

Problem:    Running filetype tests leaves directory behind.
Solution:   Delete the top directory. (closes #9483)

3 years agopatch 8.2.4032: ATTRIBUTE_NORETURN is not needed v8.2.4032
ichizok [Fri, 7 Jan 2022 20:01:07 +0000 (20:01 +0000)]
patch 8.2.4032: ATTRIBUTE_NORETURN is not needed

Problem:    ATTRIBUTE_NORETURN is not needed.
Solution:   Use NORETURN(). (Ozaki Kiichi, closes #9487)

3 years agopatch 8.2.4031: crash in xterm with only two lines v8.2.4031
Bram Moolenaar [Fri, 7 Jan 2022 19:24:20 +0000 (19:24 +0000)]
patch 8.2.4031: crash in xterm with only two lines

Problem:    Crash in xterm with only two lines. (Dominique Pellé)
Solution:   Only perform xterm compatibility test if possible. (closes #9488)

3 years agopatch 8.2.4030: a script local funcref is not found from a mapping v8.2.4030
Bram Moolenaar [Fri, 7 Jan 2022 18:20:55 +0000 (18:20 +0000)]
patch 8.2.4030: a script local funcref is not found from a mapping

Problem:    A script local funcref is not found from a mapping.
Solution:   When looking for a function, also find a script-local funcref.
            (closes #9485)

3 years agopatch 8.2.4029: debugging NFA regexp my crash, cached indent may be wrong v8.2.4029
Bram Moolenaar [Fri, 7 Jan 2022 16:55:32 +0000 (16:55 +0000)]
patch 8.2.4029: debugging NFA regexp my crash, cached indent may be wrong

Problem:    Debugging NFA regexp my crash, cached indent may be wrong.
Solution:   Fix some debug warnings in the NFA regexp code.  Make sure log_fd
            is set when used.  Fix breakindent and indent caching. (Christian
            Brabandt, closes #9482)

3 years agopatch 8.2.4028: ml_get error with :doautoall and Visual area v8.2.4028
Bram Moolenaar [Fri, 7 Jan 2022 15:45:18 +0000 (15:45 +0000)]
patch 8.2.4028: ml_get error with :doautoall and Visual area

Problem:    ml_get error with :doautoall and Visual area. (Sean Dewar)
Solution:   Disable Visual mode while executing autocommands.

3 years agopatch 8.2.4027: import test fails on MS-Windows v8.2.4027
Bram Moolenaar [Fri, 7 Jan 2022 14:39:56 +0000 (14:39 +0000)]
patch 8.2.4027: import test fails on MS-Windows

Problem:    Import test fails on MS-Windows.
Solution:   Use a different directory name.

3 years agopatch 8.2.4026: ml_get error with specific win_execute() command v8.2.4026
Bram Moolenaar [Fri, 7 Jan 2022 14:08:03 +0000 (14:08 +0000)]
patch 8.2.4026: ml_get error with specific win_execute() command

Problem:    ml_get error with specific win_execute() command. (Sean Dewar)
Solution:   Check cursor and Visual area are OK.

3 years agopatch 8.2.4025: error for import not ending in .vim does not work for .vimrc v8.2.4025
Bram Moolenaar [Fri, 7 Jan 2022 13:38:24 +0000 (13:38 +0000)]
patch 8.2.4025: error for import not ending in .vim does not work for .vimrc

Problem:    Error for import not ending in .vim does not work for .vimrc.
Solution:   Check that .vim is the end. (closes #9484)

3 years agopatch 8.2.4024: confusing error message if imported name is used directly v8.2.4024
Bram Moolenaar [Fri, 7 Jan 2022 12:45:29 +0000 (12:45 +0000)]
patch 8.2.4024: confusing error message if imported name is used directly

Problem:    Confusing error message if imported name is used directly.
Solution:   Give a better error message.

3 years agopatch 8.2.4023: using uninitialized variable v8.2.4023
Bram Moolenaar [Thu, 6 Jan 2022 22:07:57 +0000 (22:07 +0000)]
patch 8.2.4023: using uninitialized variable

Problem:    Using uninitialized variable.
Solution:   Initialize "ufunc" also when an item is not exported.

3 years agopatch 8.2.4022: two error messages in the wrong file v8.2.4022
Bram Moolenaar [Thu, 6 Jan 2022 21:41:11 +0000 (21:41 +0000)]
patch 8.2.4022: two error messages in the wrong file

Problem:    Two error messages in the wrong file.
Solution:   Use the error message from errors.h.

3 years agopatch 8.2.4021: missing part of the :import changes v8.2.4021
Bram Moolenaar [Thu, 6 Jan 2022 21:38:11 +0000 (21:38 +0000)]
patch 8.2.4021: missing part of the :import changes

Problem:    Missing part of the :import changes.
Solution:   Add changes in vim9cmds.c.

3 years agopatch 8.2.4020: debugger test fails v8.2.4020
Bram Moolenaar [Thu, 6 Jan 2022 21:31:19 +0000 (21:31 +0000)]
patch 8.2.4020: debugger test fails

Problem:    Debugger test fails.
Solution:   Fix import statement.

3 years agopatch 8.2.4019: Vim9: import mechanism is too complicated v8.2.4019
Bram Moolenaar [Thu, 6 Jan 2022 21:10:28 +0000 (21:10 +0000)]
patch 8.2.4019: Vim9: import mechanism is too complicated

Problem:    Vim9: import mechanism is too complicated.
Solution:   Do not use the Javascript mechanism but a much simpler one.

3 years agopatch 8.2.4018: ml_get error when win_execute redraws with Visual selection v8.2.4018
Bram Moolenaar [Thu, 6 Jan 2022 13:24:51 +0000 (13:24 +0000)]
patch 8.2.4018: ml_get error when win_execute redraws with Visual selection

Problem:    ml_get error when win_execute redraws with Visual selection.
Solution:   Disable Visual area temporarily. (closes #9479)

3 years agopatch 8.2.4017: gcc warns for misleading indent in Athena menu code v8.2.4017
Dominique Pelle [Thu, 6 Jan 2022 12:35:31 +0000 (12:35 +0000)]
patch 8.2.4017: gcc warns for misleading indent in Athena menu code

Problem:    Gcc warns for misleading indent in Athena menu code.
Solution:   Add curlies around the two statements. (Dominique Pellé,
            closes #9480)

3 years agopatch 8.2.4016: Vim9: incorrect error for argument that is shadowing var v8.2.4016
Bram Moolenaar [Thu, 6 Jan 2022 12:23:30 +0000 (12:23 +0000)]
patch 8.2.4016: Vim9: incorrect error for argument that is shadowing var

Problem:    Vim9: incorrect error for argument that is shadowing var.
Solution:   Ignore variable that is not in block where the function was
            defined.

3 years agopatch 8.2.4015: build failure with tiny features v8.2.4015
Bram Moolenaar [Thu, 6 Jan 2022 11:43:21 +0000 (11:43 +0000)]
patch 8.2.4015: build failure with tiny features

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

3 years agopatch 8.2.4014: git and gitcommit file types not properly recognized v8.2.4014
Bram Moolenaar [Wed, 5 Jan 2022 20:56:38 +0000 (20:56 +0000)]
patch 8.2.4014: git and gitcommit file types not properly recognized

Problem:    Git and gitcommit file types not properly recognized.
Solution:   Adjust filetype detection. (Tim Pope, closes #9477)

3 years agopatch 8.2.4013: build failure without the spell feature v8.2.4013
Bram Moolenaar [Wed, 5 Jan 2022 20:40:34 +0000 (20:40 +0000)]
patch 8.2.4013: build failure without the spell feature

Problem:    Build failure without the spell feature.
Solution:   Adjust #ifdefs.

3 years agopatch 8.2.4012: error messages are spread out v8.2.4012
Bram Moolenaar [Wed, 5 Jan 2022 20:24:39 +0000 (20:24 +0000)]
patch 8.2.4012: error messages are spread out

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

3 years agopatch 8.2.4011: test fails because of changed error number v8.2.4011
Bram Moolenaar [Wed, 5 Jan 2022 18:16:53 +0000 (18:16 +0000)]
patch 8.2.4011: test fails because of changed error number

Problem:    Test fails because of changed error number.
Solution:   Restore old duplicate error message.

3 years agopatch 8.2.4010: error messages are spread out v8.2.4010
Bram Moolenaar [Wed, 5 Jan 2022 17:49:15 +0000 (17:49 +0000)]
patch 8.2.4010: error messages are spread out

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

3 years agopatch 8.2.4009: reading one byte beyond the end of the line v8.2.4009
Bram Moolenaar [Wed, 5 Jan 2022 16:50:40 +0000 (16:50 +0000)]
patch 8.2.4009: reading one byte beyond the end of the line

Problem:    Reading one byte beyond the end of the line.
Solution:   Check for NUL byte first.

3 years agopatch 8.2.4008: error messages are spread out v8.2.4008
Bram Moolenaar [Wed, 5 Jan 2022 16:09:06 +0000 (16:09 +0000)]
patch 8.2.4008: error messages are spread out

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

3 years agopatch 8.2.4007: session does not restore help buffer properly v8.2.4007
matveyt [Wed, 5 Jan 2022 14:01:30 +0000 (14:01 +0000)]
patch 8.2.4007: session does not restore help buffer properly

Problem:    Session does not restore help buffer properly when "options' is
            missing from 'sessionoptions'.
Solution:   Use a ":help" command to create the help window. (closes #9475,
            closes #9458, closes #9472)

3 years agopatch 8.2.4006: Vim9: crash when declaring variable on the command line v8.2.4006
Bram Moolenaar [Wed, 5 Jan 2022 10:16:30 +0000 (10:16 +0000)]
patch 8.2.4006: Vim9: crash when declaring variable on the command line

Problem:    Vim9: crash when declaring variable on the command line.
Solution:   Use a temporary type list. (closes #9474)

3 years agopatch 8.2.4005: error messages are spread out v8.2.4005
Bram Moolenaar [Tue, 4 Jan 2022 21:30:47 +0000 (21:30 +0000)]
patch 8.2.4005: error messages are spread out

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

3 years agopatch 8.2.4004: old compiler complains about struct init with variable v8.2.4004
Bram Moolenaar [Tue, 4 Jan 2022 20:05:04 +0000 (20:05 +0000)]
patch 8.2.4004: old compiler complains about struct init with variable

Problem:    Old compiler complains about struct init with variable.
Solution:   Set the struct member later. (John Marriott)

3 years agopatch 8.2.4003: error messages are spread out v8.2.4003
Bram Moolenaar [Tue, 4 Jan 2022 19:57:55 +0000 (19:57 +0000)]
patch 8.2.4003: error messages are spread out

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

3 years agopatch 8.2.4002: first char typed in Select mode can be wrong v8.2.4002
zeertzjq [Tue, 4 Jan 2022 18:01:21 +0000 (18:01 +0000)]
patch 8.2.4002: first char typed in Select mode can be wrong

Problem:    First char typed in Select mode can be wrong.
Solution:   Escape special bytes in the input buffer. (closes #9469)

3 years agopatch 8.2.4001: insert complete code uses global variables v8.2.4001
Yegappan Lakshmanan [Tue, 4 Jan 2022 17:01:44 +0000 (17:01 +0000)]
patch 8.2.4001: insert complete code uses global variables

Problem:    Insert complete code uses global variables.
Solution:   Make variables local to the file and use accessor functions.
            (Yegappan Lakshmanan, closes #9470)

3 years agopatch 8.2.4000: Coverity warns for checking for NULL pointer after using it v8.2.4000
Bram Moolenaar [Tue, 4 Jan 2022 16:44:56 +0000 (16:44 +0000)]
patch 8.2.4000: Coverity warns for checking for NULL pointer after using it

Problem:    Coverity warns for checking for NULL pointer after using it.
Solution:   Remove check for NULL.

3 years agopatch 8.2.3999: redundant check for NUL byte v8.2.3999
zeertzjq [Tue, 4 Jan 2022 16:22:52 +0000 (16:22 +0000)]
patch 8.2.3999: redundant check for NUL byte

Problem:    Redundant check for NUL byte.
Solution:   Remove the check for a NUL byte. (closes #9471)

3 years agopatch 8.2.3998: asan error for adding zero to NULL v8.2.3998
Bram Moolenaar [Tue, 4 Jan 2022 16:05:48 +0000 (16:05 +0000)]
patch 8.2.3998: asan error for adding zero to NULL

Problem:    Asan error for adding zero to NULL.
Solution:   Do not compute pointer if there are no entries.

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)