]> granicus.if.org Git - vim/log
vim
3 years agopatch 8.2.4105: translation related comment in the wrong place v8.2.4105
K.Takata [Sun, 16 Jan 2022 11:25:26 +0000 (11:25 +0000)]
patch 8.2.4105: translation related comment in the wrong place

Problem:    Translation related comment in the wrong place.
Solution:   Move it back with the text. (Ken Takata, closes #9537)

3 years agopatch 8.2.4104: Vim9: lower casing the autoload prefix causes problems v8.2.4104
Bram Moolenaar [Sun, 16 Jan 2022 11:12:12 +0000 (11:12 +0000)]
patch 8.2.4104: Vim9: lower casing the autoload prefix causes problems

Problem:    Vim9: lower casing the autoload prefix causes problems.
Solution:   Always store the prefix with case preserved.

3 years agopatch 8.2.4103: Vim9: variable declared in for loop not initialzed v8.2.4103
Bram Moolenaar [Sat, 15 Jan 2022 21:44:44 +0000 (21:44 +0000)]
patch 8.2.4103: Vim9: variable declared in for loop not initialzed

Problem:    Vim9: variable declared in for loop not initialzed.
Solution:   Always initialze the variable. (closes #9535)

3 years agopatch 8.2.4102: Vim9: import cannot be used after method v8.2.4102
Bram Moolenaar [Sat, 15 Jan 2022 21:08:19 +0000 (21:08 +0000)]
patch 8.2.4102: Vim9: import cannot be used after method

Problem:    Vim9: import cannot be used after method.
Solution:   Recognize an imported function name. (closes #9496)

3 years agopatch 8.2.4101: warning for unused argument in tiny version v8.2.4101
Bram Moolenaar [Sat, 15 Jan 2022 18:48:32 +0000 (18:48 +0000)]
patch 8.2.4101: warning for unused argument in tiny version

Problem:    Warning for unused argument in tiny version.
Solution:   Add "UNUSED".

3 years agopatch 8.2.4100: early return when getting the 'formatlistpat' value v8.2.4100
Bram Moolenaar [Sat, 15 Jan 2022 18:31:43 +0000 (18:31 +0000)]
patch 8.2.4100: early return when getting the 'formatlistpat' value

Problem:    Early return when getting the 'formatlistpat' value.
Solution:   Remove the first line. (Christian Brabandt)

3 years agopatch 8.2.4099: Vim9: cannot use Vim9 syntax in mapping v8.2.4099
Bram Moolenaar [Sat, 15 Jan 2022 18:26:04 +0000 (18:26 +0000)]
patch 8.2.4099: Vim9: cannot use Vim9 syntax in mapping

Problem:    Vim9: cannot use Vim9 syntax in mapping.
Solution:   Add <ScriptCmd> to use the script context for a command.

3 years agopatch 8.2.4098: typing "interrupt" at debug prompt may keep exception around v8.2.4098
Bram Moolenaar [Sat, 15 Jan 2022 15:23:44 +0000 (15:23 +0000)]
patch 8.2.4098: typing "interrupt" at debug prompt may keep exception around

Problem:    Typing "interrupt" at debug prompt may keep exception around,
            causing function calls to fail.
Solution:   Discard any exception at the toplevel. (closes #9532)

3 years agopatch 8.2.4097: wrong number in error message on 32 bit system v8.2.4097
Bram Moolenaar [Sat, 15 Jan 2022 14:16:37 +0000 (14:16 +0000)]
patch 8.2.4097: wrong number in error message on 32 bit system

Problem:    Wrong number in error message on 32 bit system. (John Paul Adrian
            Glaubitz)
Solution:   Add type cast. (closes #9527)

3 years agopatch 8.2.4096: Linux CI: unnecessarily installing packages v8.2.4096
ichizok [Sat, 15 Jan 2022 13:37:14 +0000 (13:37 +0000)]
patch 8.2.4096: Linux CI: unnecessarily installing packages

Problem:    Linux CI: unnecessarily installing packages
Solution:   Only install packages for huge build.  (Ozaki Kiichi,
            closes #9530)

3 years agopatch 8.2.4095: sed script not recognized by the first line v8.2.4095
Bram Moolenaar [Sat, 15 Jan 2022 12:27:09 +0000 (12:27 +0000)]
patch 8.2.4095: sed script not recognized by the first line

Problem:    Sed script not recognized by the first line.
Solution:   Recognize a sed script starting with "#n". (Doug Kearns)

3 years agopatch 8.2.4094: 'virtualedit' is window-local but using buffer-local enum v8.2.4094
zeertzjq [Sat, 15 Jan 2022 10:52:16 +0000 (10:52 +0000)]
patch 8.2.4094: 'virtualedit' is window-local but using buffer-local enum

Problem:    'virtualedit' is window-local but using buffer-local enum.
Solution:   Use window-local enum. (closes #9529)

3 years agopatch 8.2.4093: cached breakindent values not initialized properly v8.2.4093
Christian Brabandt [Sat, 15 Jan 2022 10:01:05 +0000 (10:01 +0000)]
patch 8.2.4093: cached breakindent values not initialized properly

Problem:    Cached breakindent values not initialized properly.
Solution:   Initialize and cache formatlistpat. (Christian Brabandt,
            closes #9526, closes #9512)

3 years agopatch 8.2.4092: MacOS CI: unnecessarily doing "Install packages" v8.2.4092
ichizok [Fri, 14 Jan 2022 21:28:59 +0000 (21:28 +0000)]
patch 8.2.4092: MacOS CI: unnecessarily doing "Install packages"

Problem:    MacOS CI: unnecessarily doing "Install packages".
Solution:   Only do "Install packages" for huge build.  (Ozaki Kiichi,
            closes #9521)

3 years agopatch 8.2.4091: virtcol is recomputed for statusline unnecessarily v8.2.4091
zeertzjq [Fri, 14 Jan 2022 20:11:38 +0000 (20:11 +0000)]
patch 8.2.4091: virtcol is recomputed for statusline unnecessarily

Problem:    Virtcol is recomputed for statusline unnecessarily.
Solution:   Just use "w_virtcol". (closes #9523)

3 years agopatch 8.2.4090: after restoring a session buffer order can be quite different v8.2.4090
Evgeni Chasnovski [Fri, 14 Jan 2022 13:19:43 +0000 (13:19 +0000)]
patch 8.2.4090: after restoring a session buffer order can be quite different

Problem:    After restoring a session buffer order can be quite different.
Solution:   Create buffers first. (Evgeni Chasnovski, closes #9520)

3 years agopatch 8.2.4089: terminal test for current directory fails on FreeBSD v8.2.4089
Bram Moolenaar [Fri, 14 Jan 2022 12:06:47 +0000 (12:06 +0000)]
patch 8.2.4089: terminal test for current directory fails on FreeBSD

Problem:    Terminal test for current directory fails on FreeBSD.
Solution:   Skip the test.

3 years agopatch 8.2.4088: xxd cannot output everything in one line v8.2.4088
Erik Auerswald [Fri, 14 Jan 2022 11:58:48 +0000 (11:58 +0000)]
patch 8.2.4088: xxd cannot output everything in one line

Problem:    Xxd cannot output everything in one line.
Solution:   Make zero columns mean infinite columns. (Erik Auerswald,
            closes #9524)

3 years agopatch 8.2.4087: cannot test items from an autoload script easily v8.2.4087
Bram Moolenaar [Thu, 13 Jan 2022 22:05:09 +0000 (22:05 +0000)]
patch 8.2.4087: cannot test items from an autoload script easily

Problem:    Cannot test items from an autoload script easily.
Solution:   Add the "autoload" value for test_override().

3 years agopatch 8.2.4086: "cctx" argument of find_func_even_dead() is unused v8.2.4086
Bram Moolenaar [Thu, 13 Jan 2022 21:15:21 +0000 (21:15 +0000)]
patch 8.2.4086: "cctx" argument of find_func_even_dead() is unused

Problem:    "cctx" argument of find_func_even_dead() is unused.
Solution:   Remove the argument.

3 years agopatch 8.2.4085: Vim9: no test for using import in legacy script v8.2.4085
Bram Moolenaar [Thu, 13 Jan 2022 20:51:56 +0000 (20:51 +0000)]
patch 8.2.4085: Vim9: no test for using import in legacy script

Problem:    Vim9: no test for using import in legacy script.
Solution:   Add a test.

3 years agopatch 8.2.4084: memory leak when looking for autoload prefixed variable v8.2.4084
Bram Moolenaar [Thu, 13 Jan 2022 20:39:41 +0000 (20:39 +0000)]
patch 8.2.4084: memory leak when looking for autoload prefixed variable

Problem:    Memory leak when looking for autoload prefixed variable.
Solution:   Free the concatenated string.

3 years agopatch 8.2.4083: Vim9: no test for "vim9script autoload' using script variable v8.2.4083
Bram Moolenaar [Thu, 13 Jan 2022 20:18:56 +0000 (20:18 +0000)]
patch 8.2.4083: Vim9: no test for "vim9script autoload' using script variable

Problem:    Vim9: no test for "vim9script autoload' and using script variable
            in the same script.
Solution:   Add a simple test.  Fix uncovered problem.

3 years agopatch 8.2.4082: check for autoload file name and prefix fails v8.2.4082
Bram Moolenaar [Thu, 13 Jan 2022 19:25:50 +0000 (19:25 +0000)]
patch 8.2.4082: check for autoload file name and prefix fails

Problem:    Check for autoload file name and prefix fails. (Christian J.
            Robinson)
Solution:   Only lower case the prefix on systems where the file name is not
            case sensitive.

3 years agopatch 8.2.4081: CodeQL reports problem in if_cscope causing it to fail v8.2.4081
ichizok [Thu, 13 Jan 2022 18:09:11 +0000 (18:09 +0000)]
patch 8.2.4081: CodeQL reports problem in if_cscope causing it to fail

Problem:    CodeQL reports problem in if_cscope causing it to fail.
Solution:   Use execvp() instead of execl().  Merge the header file into the
            source file. (Ozaki Kiichi, closes #9519)

3 years agopatch 8.2.4080: not sufficient test coverage for xxd v8.2.4080
Erik Auerswald [Thu, 13 Jan 2022 17:42:28 +0000 (17:42 +0000)]
patch 8.2.4080: not sufficient test coverage for xxd

Problem:    Not sufficient test coverage for xxd.
Solution:   Add a few more test cases. (Erki Auerswald, closes #9515)

3 years agopatch 8.2.4079: MS-Windows: "gvim --version" didn't work with VIMDLL v8.2.4079
K.Takata [Thu, 13 Jan 2022 16:06:45 +0000 (16:06 +0000)]
patch 8.2.4079: MS-Windows: "gvim --version" didn't work with VIMDLL

Problem:    MS-Windows: "gvim --version" didn't work when build with VIMDLL.
Solution:   Adjust #ifdef. (Ken Takata, closes #9517)

3 years agopatch 8.2.4078: terminal test for current directory not used on FreeBSD v8.2.4078
Bram Moolenaar [Thu, 13 Jan 2022 15:25:32 +0000 (15:25 +0000)]
patch 8.2.4078: terminal test for current directory not used on FreeBSD

Problem:    Terminal test for current directory not used on FreeBSD.
Solution:   Make it work on FreeBSD. (Ozaki Kiichi, closes #9516) Add
            TermWait() inside Run_shell_in_terminal() as a generic solution.

3 years agopatch 8.2.4077: not all Libsensors files are recognized v8.2.4077
Bram Moolenaar [Thu, 13 Jan 2022 14:49:10 +0000 (14:49 +0000)]
patch 8.2.4077: not all Libsensors files are recognized

Problem:    Not all Libsensors files are recognized.
Solution:   Add "sensors.d/*" pattern. (Doug Kearns)

3 years agopatch 8.2.4076: memory leak in autoload import v8.2.4076
Bram Moolenaar [Thu, 13 Jan 2022 13:47:43 +0000 (13:47 +0000)]
patch 8.2.4076: memory leak in autoload import

Problem:    Memory leak in autoload import.
Solution:   Do not overwrite the autoload prefix.

3 years agopatch 8.2.4075: test failures v8.2.4075
Bram Moolenaar [Thu, 13 Jan 2022 13:24:34 +0000 (13:24 +0000)]
patch 8.2.4075: test failures

Problem:    Test failures.
Solution:   Change check for NULL pointer.

3 years agopatch 8.2.4074: going over the end of NameBuff v8.2.4074
Bram Moolenaar [Thu, 13 Jan 2022 13:08:14 +0000 (13:08 +0000)]
patch 8.2.4074: going over the end of NameBuff

Problem:    Going over the end of NameBuff.
Solution:   Check length when appending a space.

3 years agopatch 8.2.4073: Coverity warns for using NULL pointer v8.2.4073
Bram Moolenaar [Thu, 13 Jan 2022 12:05:09 +0000 (12:05 +0000)]
patch 8.2.4073: Coverity warns for using NULL pointer

Problem:    Coverity warns for using NULL pointer.
Solution:   Bail out when running out of memory. Check for running over end of
            a string.

3 years agopatch 8.2.4072: Vim9: compiling function fails when autoload is not loaded v8.2.4072
Bram Moolenaar [Wed, 12 Jan 2022 19:54:00 +0000 (19:54 +0000)]
patch 8.2.4072: Vim9: compiling function fails when autoload is not loaded

Problem:    Vim9: compiling function fails when autoload script is not loaded
            yet.
Solution:   Depend on runtime loading.

3 years agopatch 8.2.4071: Vim9: no detection of return in try/endtry v8.2.4071
Bram Moolenaar [Wed, 12 Jan 2022 16:18:18 +0000 (16:18 +0000)]
patch 8.2.4071: Vim9: no detection of return in try/endtry

Problem:    Vim9: no detection of return in try/endtry. (Dominique Pellé)
Solution:   Check if any of the blocks inside try/endtry did not end in
            return.

3 years agopatch 8.2.4070: using uninitialized memory when reading empty file v8.2.4070
Dominique Pelle [Wed, 12 Jan 2022 15:24:40 +0000 (15:24 +0000)]
patch 8.2.4070: using uninitialized memory when reading empty file

Problem:    Using uninitialized memory when reading empty file.
Solution:   Check for empty file before checking for NL. (Dominique Pellé,
            closes #9511)

3 years agopatch 8.2.4069: Vim9: import test fails on MS-Windows v8.2.4069
Bram Moolenaar [Wed, 12 Jan 2022 15:15:27 +0000 (15:15 +0000)]
patch 8.2.4069: Vim9: import test fails on MS-Windows

Problem:    Vim9: import test fails on MS-Windows.
Solution:   Ignore case.  Adjust test to avoid name that only differs in case.

3 years agopatch 8.2.4068: Vim9: import test fails v8.2.4068
Bram Moolenaar [Wed, 12 Jan 2022 12:54:55 +0000 (12:54 +0000)]
patch 8.2.4068: Vim9: import test fails

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

3 years agopatch 8.2.4067: Vim9: cannot call imported function with :call v8.2.4067
Bram Moolenaar [Wed, 12 Jan 2022 12:48:17 +0000 (12:48 +0000)]
patch 8.2.4067: Vim9: cannot call imported function with :call

Problem:    Vim9: cannot call imported function with :call. (Drew Vogel)
Solution:   Translate the function name. (closes #9510)

3 years agopatch 8.2.4066: Vim9: imported autoload script loaded again v8.2.4066
Bram Moolenaar [Wed, 12 Jan 2022 11:46:40 +0000 (11:46 +0000)]
patch 8.2.4066: Vim9: imported autoload script loaded again

Problem:    Vim9: imported autoload script loaded again.
Solution:   Do not create a new imported_T every time.

3 years agopatch 8.2.4065: computation overflow with large cound for :yank v8.2.4065
Bram Moolenaar [Tue, 11 Jan 2022 19:34:16 +0000 (19:34 +0000)]
patch 8.2.4065: computation overflow with large cound for :yank

Problem:    Computation overflow with large cound for :yank.
Solution:   Avoid an overflow.

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)