]> granicus.if.org Git - vim/log
vim
4 years agopatch 8.2.2229: build failure without the +eval feature v8.2.2229
Bram Moolenaar [Sun, 27 Dec 2020 16:35:18 +0000 (17:35 +0100)]
patch 8.2.2229: build failure without the +eval feature

Problem:    build failure without the +eval feature.
Solution:   Add #ifdef.

4 years agopatch 8.2.2228: Vim9: cannot use ":e #" because # starts a comment v8.2.2228
Bram Moolenaar [Sun, 27 Dec 2020 15:55:11 +0000 (16:55 +0100)]
patch 8.2.2228: Vim9: cannot use ":e #" because # starts a comment

Problem:    Vim9: cannot use ":e #" because # starts a comment.
Solution:   Support using %% instead of #.

4 years agopatch 8.2.2227: Vim9: recognizing lambda is too complicated v8.2.2227
Bram Moolenaar [Sun, 27 Dec 2020 13:43:30 +0000 (14:43 +0100)]
patch 8.2.2227: Vim9: recognizing lambda is too complicated

Problem:    Vim9: recognizing lambda is too complicated.
Solution:   Call compile_lambda() and check for NOTDONE.

4 years agopatch 8.2.2226: Vim9: script test fails v8.2.2226
Bram Moolenaar [Sun, 27 Dec 2020 13:02:27 +0000 (14:02 +0100)]
patch 8.2.2226: Vim9: script test fails

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

4 years agopatch 8.2.2225: Vim9: error when using :import in legacy script twice v8.2.2225
Bram Moolenaar [Sun, 27 Dec 2020 12:39:50 +0000 (13:39 +0100)]
patch 8.2.2225: Vim9: error when using :import in legacy script twice

Problem:    Vim9: error when using :import in legacy script twice.
Solution:   Make it possible to redefine an import when reloading.

4 years agopatch 8.2.2224: Vim9: crash if script reloaded with different variable type v8.2.2224
Bram Moolenaar [Sat, 26 Dec 2020 19:09:15 +0000 (20:09 +0100)]
patch 8.2.2224: Vim9: crash if script reloaded with different variable type

Problem:    Vim9: crash if script reloaded with different variable type.
Solution:   Check the type when accessing the variable.

4 years agopatch 8.2.2223: Vim9: Reloading marks a :def function as deleted v8.2.2223
Bram Moolenaar [Sat, 26 Dec 2020 16:43:08 +0000 (17:43 +0100)]
patch 8.2.2223: Vim9: Reloading marks a :def function as deleted

Problem:    Vim9: Reloading marks a :def function as deleted.
Solution:   Clear the function contents but keep the index.

4 years agopatch 8.2.2222: Vim9: cannot keep script variables when reloading v8.2.2222
Bram Moolenaar [Sat, 26 Dec 2020 14:39:31 +0000 (15:39 +0100)]
patch 8.2.2222: Vim9: cannot keep script variables when reloading

Problem:    Vim9: cannot keep script variables when reloading.
Solution:   Add the "noclear" argument to :vim9script.

4 years agopatch 8.2.2221: if <Down> is mapped on the command line 'wildchar' is inserted v8.2.2221
Bram Moolenaar [Sat, 26 Dec 2020 11:06:54 +0000 (12:06 +0100)]
patch 8.2.2221: if <Down> is mapped on the command line 'wildchar' is inserted

Problem:    If <Down> is mapped on the command line 'wildchar' is inserted.
Solution:   Set KeyTyped when using 'wildchar'. (closes #7552)

4 years agopatch 8.2.2220: Vim9: memory leak when parsing nested parenthesis v8.2.2220
Bram Moolenaar [Fri, 25 Dec 2020 21:30:16 +0000 (22:30 +0100)]
patch 8.2.2220: Vim9: memory leak when parsing nested parenthesis

Problem:    Vim9: memory leak when parsing nested parenthesis.
Solution:   Clear newargs.

4 years agopatch 8.2.2219: Vim9: method call with expression not supported v8.2.2219
Bram Moolenaar [Fri, 25 Dec 2020 20:56:57 +0000 (21:56 +0100)]
patch 8.2.2219: Vim9: method call with expression not supported

Problem:    Vim9: method call with expression not supported.
Solution:   Implement expr->(expr)().

4 years agopatch 8.2.2218: Vim9: failure if passing more args to lambda than expected v8.2.2218
Bram Moolenaar [Fri, 25 Dec 2020 19:24:51 +0000 (20:24 +0100)]
patch 8.2.2218: Vim9: failure if passing more args to lambda than expected

Problem:    Vim9: failure if passing more arguments to a lambda than expected.
Solution:   Only put expected arguments on the stack. (closes #7548)

4 years agopatch 8.2.2217: Vim9: command modifiers not restored in catch block v8.2.2217
Bram Moolenaar [Fri, 25 Dec 2020 18:47:24 +0000 (19:47 +0100)]
patch 8.2.2217: Vim9: command modifiers not restored in catch block

Problem:    Vim9: command modifiers not restored in catch block.
Solution:   Restore command modifiers. (closes #7542)

4 years agopatch 8.2.2216: Vim9: range with missing colon can be hard to spot v8.2.2216
Bram Moolenaar [Fri, 25 Dec 2020 18:25:45 +0000 (19:25 +0100)]
patch 8.2.2216: Vim9: range with missing colon can be hard to spot

Problem:    Vim9: range with missing colon can be hard to spot.
Solution:   Include the start of the range in the error. (closes #7543)

4 years agopatch 8.2.2215: Vim9: not recognized in global command v8.2.2215
Bram Moolenaar [Fri, 25 Dec 2020 17:35:29 +0000 (18:35 +0100)]
patch 8.2.2215: Vim9:  not recognized in global command

Problem:    Vim9:  not recognized in global command.
Solution:   Skip over pattern. (issue #7541)

4 years agopatch 8.2.2214: ":e#" does not give a warning for missing white space v8.2.2214
Bram Moolenaar [Fri, 25 Dec 2020 16:36:27 +0000 (17:36 +0100)]
patch 8.2.2214: ":e#" does not give a warning for missing white space

Problem:    ":e#" does not give a warning for missing white space.
Solution:   Adjust the check for white space. (closes #7545)

4 years agopatch 8.2.2213: checking white space around -> is not backwards compatible v8.2.2213
Bram Moolenaar [Fri, 25 Dec 2020 15:11:53 +0000 (16:11 +0100)]
patch 8.2.2213: checking white space around -> is not backwards compatible

Problem:    Checking white space around -> is not backwards compatible.
Solution:   Only check white space around =>.

4 years agopatch 8.2.2212: Vim9: lambda with => does not work at the script level v8.2.2212
Bram Moolenaar [Fri, 25 Dec 2020 14:24:23 +0000 (15:24 +0100)]
patch 8.2.2212: Vim9: lambda with => does not work at the script level

Problem:    Vim9: lambda with => does not work at the script level.
Solution:   Make it work.

4 years agopatch 8.2.2211: MS-Windows: can't load Python dll if not in the path v8.2.2211
Bram Moolenaar [Fri, 25 Dec 2020 12:52:37 +0000 (13:52 +0100)]
patch 8.2.2211: MS-Windows: can't load Python dll if not in the path

Problem:    MS-Windows: can't load Python dll if not in the path.
Solution:   Use the InstallPath registry entry. (Kelvin Lee, closes #7540)

4 years agopatch 8.2.2210: Vim9: allocating a type to set TTFLAG_BOOL_OK v8.2.2210
Bram Moolenaar [Fri, 25 Dec 2020 12:20:41 +0000 (13:20 +0100)]
patch 8.2.2210: Vim9: allocating a type to set TTFLAG_BOOL_OK

Problem:    Vim9: allocating a type to set TTFLAG_BOOL_OK.
Solution:   Add t_number_bool.

4 years agopatch 8.2.2209: Vim9: return type of => lambda not parsed v8.2.2209
Bram Moolenaar [Fri, 25 Dec 2020 11:38:04 +0000 (12:38 +0100)]
patch 8.2.2209: Vim9: return type of => lambda not parsed

Problem:    Vim9: return type of => lambda not parsed.
Solution:   Parse and use the return type.

4 years agopatch 8.2.2208: Vim9: after reloading a script variable index may be invalid v8.2.2208
Bram Moolenaar [Thu, 24 Dec 2020 20:56:41 +0000 (21:56 +0100)]
patch 8.2.2208: Vim9: after reloading a script variable index may be invalid

Problem:    Vim9: after reloading a script variable index may be invalid.
Solution:   When the sequence number doesn't match give an error for using a
            script-local variable from a compiled function. (closes #7547)

4 years agopatch 8.2.2207: illegal memory access if popup menu items are changed v8.2.2207
Bram Moolenaar [Thu, 24 Dec 2020 17:39:02 +0000 (18:39 +0100)]
patch 8.2.2207: illegal memory access if popup menu items are changed

Problem:    Illegal memory access if popup menu items are changed while the
            menu is visible. (Tomáš Janoušek)
Solution:   Make a copy of the text. (closes #7537)

4 years agoTweak the style a bit.
Bram Moolenaar [Thu, 24 Dec 2020 16:41:12 +0000 (17:41 +0100)]
Tweak the style a bit.

4 years agoRemove table, it doesn't work
Bram Moolenaar [Thu, 24 Dec 2020 16:35:41 +0000 (17:35 +0100)]
Remove table, it doesn't work

4 years agoAttempt to fix markdown in table cell.
Bram Moolenaar [Thu, 24 Dec 2020 16:25:06 +0000 (17:25 +0100)]
Attempt to fix markdown in table cell.

4 years agoAttempt to align the logo without a markdown table.
Bram Moolenaar [Thu, 24 Dec 2020 16:20:24 +0000 (17:20 +0100)]
Attempt to align the logo without a markdown table.

4 years agopatch 8.2.2206: :exe command line completion only works for first argument v8.2.2206
Bram Moolenaar [Thu, 24 Dec 2020 16:15:53 +0000 (17:15 +0100)]
patch 8.2.2206: :exe command line completion only works for first argument

Problem:    :exe command line completion only works for first argument.
Solution:   Skip over text if more is following. (closes #7546)

4 years agopatch 8.2.2205: Vim9: memory leak when parsing lambda fails v8.2.2205
Bram Moolenaar [Thu, 24 Dec 2020 15:06:00 +0000 (16:06 +0100)]
patch 8.2.2205: Vim9: memory leak when parsing lambda fails

Problem:    Vim9: memory leak when parsing lambda fails.
Solution:   Clear growarrays.

4 years agopatch 8.2.2204: Vim9: using -> both for method and lambda is confusing v8.2.2204
Bram Moolenaar [Thu, 24 Dec 2020 14:14:01 +0000 (15:14 +0100)]
patch 8.2.2204: Vim9: using -> both for method and lambda is confusing

Problem:    Vim9: using -> both for method and lambda is confusing.
Solution:   Use => for lambda in :def function.

4 years agopatch 8.2.2203: Moodle gift files are not recognized v8.2.2203
Bram Moolenaar [Thu, 24 Dec 2020 12:33:46 +0000 (13:33 +0100)]
patch 8.2.2203: Moodle gift files are not recognized

Problem:    Moodle gift files are not recognized.
Solution:   Add a filetype pattern. (Delim Temizer)

4 years agopatch 8.2.2202: write file test still fails on MS-Windows v8.2.2202
Bram Moolenaar [Wed, 23 Dec 2020 21:40:11 +0000 (22:40 +0100)]
patch 8.2.2202: write file test still fails on MS-Windows

Problem:    Write file test still fails on MS-Windows.
Solution:   Set fileformat with the :edit command

4 years agopatch 8.2.2201: write file test fails on MS-Windows v8.2.2201
Bram Moolenaar [Wed, 23 Dec 2020 19:55:15 +0000 (20:55 +0100)]
patch 8.2.2201: write file test fails on MS-Windows

Problem:    Write file test fails on MS-Windows.
Solution:   Force edit after setting 'fileformat'.

4 years agopatch 8.2.2200: Vim9: lambda without white space around -> is confusing v8.2.2200
Bram Moolenaar [Wed, 23 Dec 2020 19:27:31 +0000 (20:27 +0100)]
patch 8.2.2200: Vim9: lambda without white space around -> is confusing

Problem:    Vim9: lambda without white space around -> is confusing.
Solution:   Require white space in a :def funtion. (issue #7503)

4 years agopatch 8.2.2199: first write after setting 'eol' does not have NL added v8.2.2199
Bram Moolenaar [Wed, 23 Dec 2020 17:54:57 +0000 (18:54 +0100)]
patch 8.2.2199: first write after setting 'eol' does not have NL added

Problem:    First write after setting 'eol' does not have NL added. (Tomáš
            Janoušek)
Solution:   Only use b_no_eol_lnum when doing a binary write. (closes #7535)

4 years agopatch 8.2.2198: ml_get error when resizing window and using text property v8.2.2198
Bram Moolenaar [Wed, 23 Dec 2020 13:36:00 +0000 (14:36 +0100)]
patch 8.2.2198: ml_get error when resizing window and using text property

Problem:    ml_get error when resizing window and using text property.
Solution:   Validate botline of the right window. (closes #7528)

4 years agoUpdate runtime files.
Bram Moolenaar [Wed, 23 Dec 2020 12:56:35 +0000 (13:56 +0100)]
Update runtime files.

4 years agopatch 8.2.2197: assert arguments order reversed v8.2.2197
Bram Moolenaar [Wed, 23 Dec 2020 11:50:20 +0000 (12:50 +0100)]
patch 8.2.2197: assert arguments order reversed

Problem:    Assert arguments order reversed.
Solution:   Swap the arguments. (Christian Brabandt, closes #7531)

4 years agopatch 8.2.2196: :version output has extra spaces in compile and link command v8.2.2196
Bram Moolenaar [Wed, 23 Dec 2020 11:33:42 +0000 (12:33 +0100)]
patch 8.2.2196: :version output has extra spaces in compile and link command

Problem:    :version output has extra spaces in compile and link command.
Solution:   Adjust QUOTESED. (closes #7505)

4 years agopatch 8.2.2195: failing tests for :const v8.2.2195
Bram Moolenaar [Tue, 22 Dec 2020 21:07:30 +0000 (22:07 +0100)]
patch 8.2.2195: failing tests for :const

Problem:    Failing tests for :const.
Solution:   Add missing check for ASSIGN_FINAL.

4 years agopatch 8.2.2194: Vim9: cannot use :const or :final at the script level v8.2.2194
Bram Moolenaar [Tue, 22 Dec 2020 20:19:39 +0000 (21:19 +0100)]
patch 8.2.2194: Vim9: cannot use :const or :final at the script level

Problem:    Vim9: cannot use :const or :final at the script level.
Solution:   Support using :const and :final. (closes #7526)

4 years agopatch 8.2.2193: Vim9: can change constant in :def function v8.2.2193
Bram Moolenaar [Tue, 22 Dec 2020 19:35:40 +0000 (20:35 +0100)]
patch 8.2.2193: Vim9: can change constant in :def function

Problem:    Vim9: can change constant in :def function.
Solution:   Check if a variable is locked. (issue #7526)

4 years agopatch 8.2.2192: Codecov on github actions fails v8.2.2192
Bram Moolenaar [Tue, 22 Dec 2020 18:05:33 +0000 (19:05 +0100)]
patch 8.2.2192: Codecov on github actions fails

Problem:    Codecov on github actions fails.
Solution:   Revert to codecov script. (Ozaki Kiichi, closes #7529)

4 years agopatch 8.2.2191: Vim9: using wrong name with lambda in nested function v8.2.2191
Bram Moolenaar [Tue, 22 Dec 2020 17:56:55 +0000 (18:56 +0100)]
patch 8.2.2191: Vim9: using wrong name with lambda in nested function

Problem:    Vim9: using wrong name with lambda in nested function.
Solution:   Copy the lambda name earlier. (closes #7525)

4 years agopatch 8.2.2190: Vim9: crash when compiled with EXITFREE v8.2.2190
Bram Moolenaar [Tue, 22 Dec 2020 17:33:27 +0000 (18:33 +0100)]
patch 8.2.2190: Vim9: crash when compiled with EXITFREE

Problem:    Vim9: crash when compiled with EXITFREE.
Solution:   Check that df_ufunc is not NULL.

4 years agopatch 8.2.2189: cannot repeat a command that uses the small delete register v8.2.2189
Bram Moolenaar [Tue, 22 Dec 2020 16:59:35 +0000 (17:59 +0100)]
patch 8.2.2189: cannot repeat a command that uses the small delete register

Problem:    Cannot repeat a command that uses the small delete register.
Solution:   Store the register name instead of the contents. (Christian
            Brabandt, closes #7527)

4 years agopatch 8.2.2188: Vim9: crash when calling global function from :def function v8.2.2188
Bram Moolenaar [Tue, 22 Dec 2020 16:35:54 +0000 (17:35 +0100)]
patch 8.2.2188: Vim9: crash when calling global function from :def function

Problem:    Vim9: crash when calling global function from :def function.
Solution:   Set the outer context.  Define the partial for the context on the
            original function. Use a refcount to keep track of which ufunc is
            using a dfunc. (closes #7525)

4 years agopatch 8.2.2187: Python 3 test fails sometimes v8.2.2187
Bram Moolenaar [Tue, 22 Dec 2020 11:50:10 +0000 (12:50 +0100)]
patch 8.2.2187: Python 3 test fails sometimes

Problem:    Python 3 test fails sometimes. (Christian Brabandt)
Solution:   Accept two SystemError messages.

4 years agopatch 8.2.2186: Vim9: error when using 'opfunc' v8.2.2186
Bram Moolenaar [Tue, 22 Dec 2020 11:20:08 +0000 (12:20 +0100)]
patch 8.2.2186: Vim9: error when using 'opfunc'

Problem:    Vim9: error when using 'opfunc'.
Solution:   Do not expect a return value from 'opfunc'. (closes #7510)

4 years agoAdd missing change to version.c
Bram Moolenaar [Tue, 22 Dec 2020 11:18:11 +0000 (12:18 +0100)]
Add missing change to version.c

4 years agopatch 8.2.2185: BufUnload is not triggered for the quickfix dummy buffer v8.2.2185
Bram Moolenaar [Tue, 22 Dec 2020 10:40:45 +0000 (11:40 +0100)]
patch 8.2.2185: BufUnload is not triggered for the quickfix dummy buffer

Problem:    BufUnload is not triggered for the quickfix dummy buffer.
Solution:   Do trigger BufUnload. (Pontus Leitzler,closes #7518, closes #7517)
            Fix white space around "=".

4 years agopatch 8.2.2184: Vim9: no error when using "2" for a line number v8.2.2184
Bram Moolenaar [Mon, 21 Dec 2020 20:58:46 +0000 (21:58 +0100)]
patch 8.2.2184: Vim9: no error when using "2" for a line number

Problem:    Vim9: no error when using "2" for a line number.
Solution:   Give an error message if the line number is invalid. (closes #7492)

4 years agopatch 8.2.2183: Vim9: value of 'edcompatible' and 'gdefault' are used v8.2.2183
Bram Moolenaar [Mon, 21 Dec 2020 19:32:43 +0000 (20:32 +0100)]
patch 8.2.2183: Vim9: value of 'edcompatible' and 'gdefault' are used

Problem:    Vim9: value of 'edcompatible' and 'gdefault' are used.
Solution:   Ignore these deprecated options in Vim9 script. (closes #7508)

4 years agopatch 8.2.2182: Vim9: value of 'magic' is still relevant v8.2.2182
Bram Moolenaar [Mon, 21 Dec 2020 18:59:08 +0000 (19:59 +0100)]
patch 8.2.2182: Vim9: value of 'magic' is still relevant

Problem:    Vim9: value of 'magic' is still relevant.
Solution:   Always behave like 'magic' is on in Vim9 script (closes #7509)

4 years agopatch 8.2.2181: valgrind warnings for using uninitialized value v8.2.2181
Bram Moolenaar [Mon, 21 Dec 2020 17:24:00 +0000 (18:24 +0100)]
patch 8.2.2181: valgrind warnings for using uninitialized value

Problem:    Valgrind warnings for using uninitialized value.
Solution:   Do not use "start" or "end" unless there is a match.

4 years agopatch 8.2.2180: Vim9: test for error after error is flaky v8.2.2180
Bram Moolenaar [Mon, 21 Dec 2020 17:11:24 +0000 (18:11 +0100)]
patch 8.2.2180: Vim9: test for error after error is flaky

Problem:    Vim9: test for error after error is flaky.
Solution:   Wait for job to finish instead of a fixed delay.

4 years agopatch 8.2.2179: Vim9: crash when indexing a dict with a number v8.2.2179
Bram Moolenaar [Mon, 21 Dec 2020 16:30:50 +0000 (17:30 +0100)]
patch 8.2.2179: Vim9: crash when indexing a dict with a number

Problem:    Vim9: crash when indexing a dict with a number.
Solution:   Add ISN_STOREINDEX. (closes #7513)

4 years agopatch 8.2.2178: Python 3: non-utf8 character cannot be handled v8.2.2178
Bram Moolenaar [Mon, 21 Dec 2020 15:03:02 +0000 (16:03 +0100)]
patch 8.2.2178: Python 3: non-utf8 character cannot be handled

Problem:    Python 3: non-utf8 character cannot be handled.
Solution:   Change the string decode. (Björn Linse, closes #1053)

4 years agopatch 8.2.2177: pattern "^" does not match if first character is combining v8.2.2177
Bram Moolenaar [Mon, 21 Dec 2020 13:54:32 +0000 (14:54 +0100)]
patch 8.2.2177: pattern "^" does not match if first character is combining

Problem:    Pattern "^" does not match if the first character in the line is
            combining. (Rene Kita)
Solution:   Do accept a match at the start of the line. (closes #6963)

4 years agopatch 8.2.2176: crash with a sequence of fold commands v8.2.2176
Bram Moolenaar [Mon, 21 Dec 2020 13:01:41 +0000 (14:01 +0100)]
patch 8.2.2176: crash with a sequence of fold commands

Problem:    Crash with a sequence of fold commands.
Solution:   Bail out when there are no folds at all.  Add a test (Dominique
            Pellé) (closes #7515)

4 years agopatch 8.2.2175: github actions: clang-11 handling suboptimal v8.2.2175
Bram Moolenaar [Mon, 21 Dec 2020 12:37:28 +0000 (13:37 +0100)]
patch 8.2.2175: github actions: clang-11 handling suboptimal

Problem:    Github actions: clang-11 handling suboptimal.
Solution:   Separate step of installing clang-11. Get ubuntu release name
            dynamically. (Ozaki Kiichi, closes #7514)

4 years agopatch 8.2.2174: Mac version doesn't specify the CPU architecture v8.2.2174
Bram Moolenaar [Mon, 21 Dec 2020 12:05:57 +0000 (13:05 +0100)]
patch 8.2.2174: Mac version doesn't specify the CPU architecture

Problem:    Mac version doesn't specify the CPU architecture.
Solution:   Add "arm64" or "x86_64". (Yee Cheng Chin, closes #7519)

4 years agopatch 8.2.2173: Vim9: get internal error when assigning to undefined variable v8.2.2173
Bram Moolenaar [Sun, 20 Dec 2020 20:43:35 +0000 (21:43 +0100)]
patch 8.2.2173: Vim9: get internal error when assigning to undefined variable

Problem:    Vim9: get internal error when assigning to undefined variable.
Solution:   Add error message. (closes #7475)

4 years agopatch 8.2.2172: Vim9: number of arguments is not always checked v8.2.2172
Bram Moolenaar [Sun, 20 Dec 2020 20:10:17 +0000 (21:10 +0100)]
patch 8.2.2172: Vim9: number of arguments is not always checked

Problem:    Vim9: number of arguments is not always checked. (Yegappan
            Lakshmanan)
Solution:   Check number of arguments when calling function by name.

4 years agopatch 8.2.2171: valgrind warning for using uninitialized value v8.2.2171
Bram Moolenaar [Sun, 20 Dec 2020 16:59:53 +0000 (17:59 +0100)]
patch 8.2.2171: valgrind warning for using uninitialized value

Problem:    Valgrind warning for using uninitialized value.
Solution:   Do not use "startp" or "endp" unless there is a match.

4 years agopatch 8.2.2170: Vim9: a global function defined in a :def function fails v8.2.2170
Bram Moolenaar [Sun, 20 Dec 2020 16:47:52 +0000 (17:47 +0100)]
patch 8.2.2170: Vim9: a global function defined in a :def function fails

Problem:    Vim9: a global function defined in a :def function fails if it
            uses the context.
Solution:   Create a partial to store the closure context. (see #7410)

4 years agopatch 8.2.2169: Vim9: test leaves file behind v8.2.2169
Bram Moolenaar [Sun, 20 Dec 2020 14:43:31 +0000 (15:43 +0100)]
patch 8.2.2169: Vim9: test leaves file behind

Problem:    Vim9: test leaves file behind.
Solution:   Rename script files. (Dominique Pellé, closes #7511)
            Use try/finally.

4 years agopatch 8.2.2168: Vim9: error for assigning to dict of dict v8.2.2168
Bram Moolenaar [Sun, 20 Dec 2020 14:20:56 +0000 (15:20 +0100)]
patch 8.2.2168: Vim9: error for assigning to dict of dict

Problem:    Vim9: error for assigning to dict of dict.
Solution:   Remember the destination type. (closes #7506)

4 years agopatch 8.2.2167: Vim9: assign test fails v8.2.2167
Bram Moolenaar [Sun, 20 Dec 2020 13:49:42 +0000 (14:49 +0100)]
patch 8.2.2167: Vim9: assign test fails

Problem:    Vim9: assign test fails. (Elimar Riesebieter)
Solution:   Adjust the test for dict assignment.

4 years agopatch 8.2.2166: auto format doesn't work when deleting text v8.2.2166
Bram Moolenaar [Sun, 20 Dec 2020 12:07:48 +0000 (13:07 +0100)]
patch 8.2.2166: auto format doesn't work when deleting text

Problem:    Auto format doesn't work when deleting text.
Solution:   Make "x" trigger auto format. (closes #7504)

4 years agopatch 8.2.2165: Vim9: assignment to dict member does not work v8.2.2165
Bram Moolenaar [Sat, 19 Dec 2020 21:10:13 +0000 (22:10 +0100)]
patch 8.2.2165: Vim9: assignment to dict member does not work

Problem:    Vim9: assignment to dict member does not work.
Solution:   Fix recognizing dict member. (closes #7484)

4 years agopatch 8.2.2164: Vim9: autoload function doesn't work in uppercased script v8.2.2164
Bram Moolenaar [Sat, 19 Dec 2020 20:23:42 +0000 (21:23 +0100)]
patch 8.2.2164: Vim9: autoload function doesn't work in uppercased script

Problem:    Vim9: autoload function doesn't work in script that starts with
            an upper case letter.
Solution:   Check for the autoload character. (closes #7502)

4 years agopatch 8.2.2163: crash when discarded exception is the current exception v8.2.2163
Bram Moolenaar [Sat, 19 Dec 2020 16:55:54 +0000 (17:55 +0100)]
patch 8.2.2163: crash when discarded exception is the current exception

Problem:    Crash when discarded exception is the current exception.
Solution:   Compare the execption with current_exception. (closes #7499)

4 years agopatch 8.2.2162: Vim9: Cannot load or store autoload variables v8.2.2162
Bram Moolenaar [Sat, 19 Dec 2020 15:30:44 +0000 (16:30 +0100)]
patch 8.2.2162: Vim9: Cannot load or store autoload variables

Problem:    Vim9: Cannot load or store autoload variables.
Solution:   Add ISN_LOADAUTO and ISN_STOREAUTO. (closes #7485)

4 years agopatch 8.2.2161: arguments -T and -x not tested yet v8.2.2161
Bram Moolenaar [Sat, 19 Dec 2020 12:32:07 +0000 (13:32 +0100)]
patch 8.2.2161: arguments -T and -x not tested yet

Problem:    Arguments -T and -x not tested yet.
Solution:   Add a test. (Dominique Pellé, closes #7490

4 years agopatch 8.2.2160: various typos v8.2.2160
Bram Moolenaar [Fri, 18 Dec 2020 18:49:56 +0000 (19:49 +0100)]
patch 8.2.2160: various typos

Problem:    Various typos.
Solution:   Fix spelling mistakes. (closes #7494)

4 years agopatch 8.2.2159: Vim9: when declaring a list it is not allocated yet v8.2.2159
Bram Moolenaar [Fri, 18 Dec 2020 16:23:14 +0000 (17:23 +0100)]
patch 8.2.2159: Vim9: when declaring a list it is not allocated yet

Problem:    Vim9: when declaring a list it is not allocated yet, causing a
            following extend() to fail.
Solution:   When fetching a variable value for a list or dict that is null
            allocate the list or dict, so it can be used. (closes #7491)

4 years agopatch 8.2.2158: CI on cirrus times out, coveralls doesn't always run v8.2.2158
Bram Moolenaar [Fri, 18 Dec 2020 15:29:25 +0000 (16:29 +0100)]
patch 8.2.2158: CI on cirrus times out, coveralls doesn't always run

Problem:    CI on cirrus times out, coveralls doesn't always run.
Solution:   Set timeout to 20 minutes. Adjust condition. (closes #7493)

4 years agopatch 8.2.2157: Vim9: can delete a Vim9 script variable from a function v8.2.2157
Bram Moolenaar [Fri, 18 Dec 2020 14:38:00 +0000 (15:38 +0100)]
patch 8.2.2157: Vim9: can delete a Vim9 script variable from a function

Problem:    Vim9: can delete a Vim9 script variable from a function.
Solution:   Check the variable is defined in Vim9 script. (closes #7483)

4 years agopatch 8.2.2156: Github actions run on pusing a tag v8.2.2156
Bram Moolenaar [Fri, 18 Dec 2020 12:31:31 +0000 (13:31 +0100)]
patch 8.2.2156: Github actions run on pusing a tag

Problem:    Github actions run on pusing a tag.
Solution:   Don't run CI on tag push. Omit coveralls on pull-request.
            (Ozaki Kiichi, closes #7489)

4 years agopatch 8.2.2155: warning from Github actions for code analysis v8.2.2155
Bram Moolenaar [Fri, 18 Dec 2020 12:15:20 +0000 (13:15 +0100)]
patch 8.2.2155: warning from Github actions for code analysis

Problem:    Warning from Github actions for code analysis.
Solution:   Remove the "git checkout HEAD^2" block.

4 years agopatch 8.2.2154: popupwin test for terminal buffer fails sometimes v8.2.2154
Bram Moolenaar [Thu, 17 Dec 2020 21:27:38 +0000 (22:27 +0100)]
patch 8.2.2154: popupwin test for terminal buffer fails sometimes

Problem:    Popupwin test for terminal buffer fails sometimes.
Solution:   Wait for the prompt to appear.

4 years agopatch 8.2.2153: popupwin test for latin1 still fails sometimes v8.2.2153
Bram Moolenaar [Thu, 17 Dec 2020 20:56:09 +0000 (21:56 +0100)]
patch 8.2.2153: popupwin test for latin1 still fails sometimes

Problem:    Popupwin test for latin1 still fails sometimes.
Solution:   Wait for the "cat" command to finish.

4 years agopatch 8.2.2152: screenpos() does not include the WinBar offset v8.2.2152
Bram Moolenaar [Thu, 17 Dec 2020 20:35:29 +0000 (21:35 +0100)]
patch 8.2.2152: screenpos() does not include the WinBar offset

Problem:    screenpos() does not include the WinBar offset.
Solution:   Use W_WINROW() instead of directly using w_window. (closes #7487)

4 years agopatch 8.2.2151: $dir not expanded when configure checks for moonjit v8.2.2151
Bram Moolenaar [Thu, 17 Dec 2020 19:50:25 +0000 (20:50 +0100)]
patch 8.2.2151: $dir not expanded when configure checks for moonjit

Problem:    $dir not expanded when configure checks for moonjit.
Solution:   Use double quotes instead of single quotes. (closes #7478)

4 years agopatch 8.2.2150: Github actions CI isn't used for all available platforms v8.2.2150
Bram Moolenaar [Thu, 17 Dec 2020 19:27:26 +0000 (20:27 +0100)]
patch 8.2.2150: Github actions CI isn't used for all available platforms

Problem:    Github actions CI isn't used for all available platforms.
Solution:   Update the github workflows. (Ozaki Kiichi, closes #7433)

4 years agopatch 8.2.2149: popupwin test for latin1 sometimes fails v8.2.2149
Bram Moolenaar [Thu, 17 Dec 2020 16:45:59 +0000 (17:45 +0100)]
patch 8.2.2149: popupwin test for latin1 sometimes fails

Problem:    Popupwin test for latin1 sometimes fails.
Solution:   Wait for the script to finish.

4 years agopatch 8.2.2148: Vim9: crash when user command doesn't match v8.2.2148
Bram Moolenaar [Wed, 16 Dec 2020 20:43:54 +0000 (21:43 +0100)]
patch 8.2.2148: Vim9: crash when user command doesn't match

Problem:    Vim9: crash when user command doesn't match.
Solution:   Adjust command index. (closes #7479)

4 years agopatch 8.2.2147: quickfix window title not updated in all tab pages v8.2.2147
Bram Moolenaar [Wed, 16 Dec 2020 20:02:56 +0000 (21:02 +0100)]
patch 8.2.2147: quickfix window title not updated in all tab pages

Problem:    Quickfix window title not updated in all tab pages.
Solution:   Update the quickfix window title in all tab pages. (Yegappan
            Lakshmanan, closes #7481, closes #7466)

4 years agopatch 8.2.2146: Vim9: automatic conversion of number to string for dict key v8.2.2146
Bram Moolenaar [Tue, 15 Dec 2020 20:41:56 +0000 (21:41 +0100)]
patch 8.2.2146: Vim9: automatic conversion of number to string for dict key

Problem:    Vim9: automatic conversion of number to string for dict key.
Solution:   Do not convert number to string. (closes #7474)

4 years agopatch 8.2.2145: Vim9: concatenating lists does not adjust type of result v8.2.2145
Bram Moolenaar [Tue, 15 Dec 2020 20:28:57 +0000 (21:28 +0100)]
patch 8.2.2145: Vim9: concatenating lists does not adjust type of result

Problem:    Vim9: concatenating lists does not adjust type of result.
Solution:   When list member types differ use "any" member type.
            (closes #7473)

4 years agopatch 8.2.2144: Vim9: some corner cases not tested v8.2.2144
Bram Moolenaar [Mon, 14 Dec 2020 17:31:27 +0000 (18:31 +0100)]
patch 8.2.2144: Vim9: some corner cases not tested

Problem:    Vim9: some corner cases not tested.
Solution:   Add a few tests.

4 years agopatch 8.2.2143: Vim9: dead code in compiling :unlet v8.2.2143
Bram Moolenaar [Sun, 13 Dec 2020 20:26:56 +0000 (21:26 +0100)]
patch 8.2.2143: Vim9: dead code in compiling :unlet

Problem:    Vim9: dead code in compiling :unlet.
Solution:   Don't check for "!" a second time.

4 years agopatch 8.2.2142: memory leak when heredoc is not terminated v8.2.2142
Bram Moolenaar [Sun, 13 Dec 2020 20:16:55 +0000 (21:16 +0100)]
patch 8.2.2142: memory leak when heredoc is not terminated

Problem:    Memory leak when heredoc is not terminated.
Solution:   Free heredoc_trimmed.

4 years agopatch 8.2.2141: a user command with try/catch may not catch an expression error v8.2.2141
Bram Moolenaar [Sun, 13 Dec 2020 19:26:29 +0000 (20:26 +0100)]
patch 8.2.2141: a user command with try/catch may not catch an expression error

Problem:    A user command with try/catch may not catch an expression error.
Solution:   When an expression fails check for following "|". (closes #7469)

4 years agopatch 8.2.2140: build failure with tiny features v8.2.2140
Bram Moolenaar [Sun, 13 Dec 2020 18:22:27 +0000 (19:22 +0100)]
patch 8.2.2140: build failure with tiny features

Problem:    Build failure with tiny features.
Solution:   Add #ifdef.

4 years agopatch 8.2.2139: Vim9: unreachable code in assignment v8.2.2139
Bram Moolenaar [Sun, 13 Dec 2020 17:44:43 +0000 (18:44 +0100)]
patch 8.2.2139: Vim9: unreachable code in assignment

Problem:    Vim9: unreachable code in assignment.
Solution:   Don't check "new_local" when "has_index" is set.  Add test for
            wrong type of list index.

4 years agopatch 8.2.2138: Vim9: "exit_cb" causes Vim to exit v8.2.2138
Bram Moolenaar [Sun, 13 Dec 2020 16:50:20 +0000 (17:50 +0100)]
patch 8.2.2138: Vim9: "exit_cb" causes Vim to exit

Problem:    Vim9: "exit_cb" causes Vim to exit.
Solution:   Require white space after a command in Vim9 script. (closes #7467)
            Also fix that Vim9 style heredoc was not always recognized.

4 years agopatch 8.2.2137: Vim9: :echo and :execute give error for empty argument v8.2.2137
Bram Moolenaar [Sun, 13 Dec 2020 13:19:25 +0000 (14:19 +0100)]
patch 8.2.2137: Vim9: :echo and :execute give error for empty argument

Problem:    Vim9: :echo and :execute give error for empty argument.
Solution:   Ignore an empty argument. (closes #7468)

4 years agopatch 8.2.2136: Vim9: Using uninitialized variable v8.2.2136
Bram Moolenaar [Sun, 13 Dec 2020 11:25:35 +0000 (12:25 +0100)]
patch 8.2.2136: Vim9: Using uninitialized variable

Problem:    Vim9: Using uninitialized variable.
Solution:   Initialize "len" to zero.  Clean up fnamemodify().