]> granicus.if.org Git - vim/log
vim
3 years agopatch 8.2.2750: Vim9: error for using underscore in nested function v8.2.2750
Bram Moolenaar [Sat, 10 Apr 2021 19:01:38 +0000 (21:01 +0200)]
patch 8.2.2750: Vim9: error for using underscore in nested function

Problem:    Vim9: error for using underscore in nested function.
Solution:   Do not consider "_" already defined. (closes #8096)

3 years agopatch 8.2.2749: Vim9: test for error can be a bit flaky v8.2.2749
Bram Moolenaar [Sat, 10 Apr 2021 18:52:43 +0000 (20:52 +0200)]
patch 8.2.2749: Vim9: test for error can be a bit flaky

Problem:    Vim9: test for error can be a bit flaky.
Solution:   Increase the wait time a bit.

3 years agopatch 8.2.2748: Vim9: memory leak when calling :def function fails v8.2.2748
Bram Moolenaar [Sat, 10 Apr 2021 18:46:48 +0000 (20:46 +0200)]
patch 8.2.2748: Vim9: memory leak when calling :def function fails

Problem:    Vim9: memory leak when calling :def function fails.
Solution:   Jump to failed_early instead of returning.

3 years agopatch 8.2.2747: Vim9: not always an error for too many function arguments v8.2.2747
Bram Moolenaar [Sat, 10 Apr 2021 18:10:26 +0000 (20:10 +0200)]
patch 8.2.2747: Vim9: not always an error for too many function arguments

Problem:    Vim9: not always an error for too many function arguments.
Solution:   Check for getting too many arguments.

3 years agopatch 8.2.2746: check for duplicate arguments does not work v8.2.2746
Bram Moolenaar [Sat, 10 Apr 2021 16:21:30 +0000 (18:21 +0200)]
patch 8.2.2746: check for duplicate arguments does not work

Problem:    Check for duplicate arguments does not work.
Solution:   Correct condition.

3 years agopatch 8.2.2745: Vim9: missing part of the argument change v8.2.2745
Bram Moolenaar [Sat, 10 Apr 2021 15:46:52 +0000 (17:46 +0200)]
patch 8.2.2745: Vim9: missing part of the argument change

Problem:    Vim9: missing part of the argument change.
Solution:   Add missing changes.

3 years agopatch 8.2.2744: Vim9: no way to explicitly ignore an argument v8.2.2744
Bram Moolenaar [Sat, 10 Apr 2021 15:18:09 +0000 (17:18 +0200)]
patch 8.2.2744: Vim9: no way to explicitly ignore an argument

Problem:    Vim9: no way to explicitly ignore an argument.
Solution:   Use the underscore as the name for an ignored argument.

3 years agopatch 8.2.2743: Vim9: function state stuck when compiling with ":silent!" v8.2.2743
Bram Moolenaar [Sat, 10 Apr 2021 12:03:43 +0000 (14:03 +0200)]
patch 8.2.2743: Vim9: function state stuck when compiling with ":silent!"

Problem:    Vim9: function state stuck when compiling with ":silent!".
Solution:   Check for uf_def_status to be UF_COMPILING.

3 years agopatch 8.2.2742: Vim9: when compiling a function fails it is cleared v8.2.2742
Bram Moolenaar [Sat, 10 Apr 2021 11:33:48 +0000 (13:33 +0200)]
patch 8.2.2742: Vim9: when compiling a function fails it is cleared

Problem:    Vim9: when compiling a function fails it is cleared.
Solution:   Keep the function lines, prevent execution with a different
            status. (closes #8093)

3 years agopatch 8.2.2741: Vim9: Partial call does not check right arguments v8.2.2741
Bram Moolenaar [Fri, 9 Apr 2021 20:12:44 +0000 (22:12 +0200)]
patch 8.2.2741: Vim9: Partial call does not check right arguments

Problem:    Vim9: Partial call does not check right arguments.
Solution:   Adjust the offset for whether the partial is before or after the
            arguments. (closes #8091)

3 years agopatch 8.2.2740: Vim9: lambda with varargs doesn't work v8.2.2740
Bram Moolenaar [Fri, 9 Apr 2021 18:24:31 +0000 (20:24 +0200)]
patch 8.2.2740: Vim9: lambda with varargs doesn't work

Problem:    Vim9: lambda with varargs doesn't work.
Solution:   Make "...name" work.  Require type to be a list.

3 years agopatch 8.2.2739: Vim9: a lambda accepts too many arguments at the script level v8.2.2739
Bram Moolenaar [Fri, 9 Apr 2021 15:24:52 +0000 (17:24 +0200)]
patch 8.2.2739: Vim9: a lambda accepts too many arguments at the script level

Problem:    Vim9: a lambda accepts too many arguments at the script level.
Solution:   Do not set uf_varargs in Vim9 script.

3 years agopatch 8.2.2738: extending a list with itself can give wrong result v8.2.2738
Bram Moolenaar [Thu, 8 Apr 2021 18:10:10 +0000 (20:10 +0200)]
patch 8.2.2738: extending a list with itself can give wrong result

Problem:    Extending a list with itself can give wrong result.
Solution:   Remember the item before where the insertion happens and skip to
            after the already inserted items. (closes #1112)

3 years agopatch 8.2.2737: status line not updated when local 'statusline' option set v8.2.2737
Bram Moolenaar [Thu, 8 Apr 2021 16:27:53 +0000 (18:27 +0200)]
patch 8.2.2737: status line not updated when local 'statusline' option set

Problem:    Status line not updated when local 'statusline' option set.
Solution:   Check the 'statusline' option of each window.

3 years agopatch 8.2.2736: Vim9: for loop over string is a bit slow v8.2.2736
Bram Moolenaar [Thu, 8 Apr 2021 16:05:03 +0000 (18:05 +0200)]
patch 8.2.2736: Vim9: for loop over string is a bit slow

Problem:    Vim9: for loop over string is a bit slow.
Solution:   Avoid using strlen().

3 years agopatch 8.2.2735: Vim9: function reference found with prefix, not without v8.2.2735
Bram Moolenaar [Wed, 7 Apr 2021 19:58:16 +0000 (21:58 +0200)]
patch 8.2.2735: Vim9: function reference found with prefix, not without

Problem:    Vim9: function reference found with prefix, not without.
Solution:   Also find function reference without prefix.

3 years agopatch 8.2.2734: Vim9: cannot use legacy script-local var from :def function v8.2.2734
Bram Moolenaar [Wed, 7 Apr 2021 19:21:13 +0000 (21:21 +0200)]
patch 8.2.2734: Vim9: cannot use legacy script-local var from :def function

Problem:    Vim9: cannot use legacy script-local var from :def function.
Solution:   Do not insist on using "s:" prefix. (closes #8076)

3 years agoUpdate runtime files
Bram Moolenaar [Wed, 7 Apr 2021 19:07:20 +0000 (21:07 +0200)]
Update runtime files

3 years agopatch 8.2.2733: detecting Lua version is not reliable v8.2.2733
Bram Moolenaar [Wed, 7 Apr 2021 18:11:12 +0000 (20:11 +0200)]
patch 8.2.2733: detecting Lua version is not reliable

Problem:    Detecting Lua version is not reliable.
Solution:   Add "vim.lua_version". (Ozaki Kiichi, closes #8080)

3 years agopatch 8.2.2732: prompt for s///c in Ex mode can be wrong v8.2.2732
Bram Moolenaar [Wed, 7 Apr 2021 17:42:57 +0000 (19:42 +0200)]
patch 8.2.2732: prompt for s///c in Ex mode can be wrong

Problem:    Prompt for s///c in Ex mode can be wrong.
Solution:   Position the cursor before showing the prompt. (closes #8073)

3 years agopatch 8.2.2731: Mac: SF symbols are not displayed properly v8.2.2731
Bram Moolenaar [Wed, 7 Apr 2021 17:00:25 +0000 (19:00 +0200)]
patch 8.2.2731: Mac: SF symbols are not displayed properly

Problem:    Mac: SF symbols are not displayed properly.
Solution:   Add custom range to list of double-width characters. (Yee Cheng
            Chin, closes #8077)

3 years agopatch 8.2.2730: Coverity complains about not restoring character v8.2.2730
Bram Moolenaar [Tue, 6 Apr 2021 19:29:32 +0000 (21:29 +0200)]
patch 8.2.2730: Coverity complains about not restoring character

Problem:    Coverity complains about not restoring character.
Solution:   Also restore the character in case of an error.

3 years agopatch 8.2.2729: Vim9: wrong error message for referring to legacy script var v8.2.2729
Bram Moolenaar [Tue, 6 Apr 2021 19:17:27 +0000 (21:17 +0200)]
patch 8.2.2729: Vim9: wrong error message for referring to legacy script var

Problem:    Vim9: wrong error message for referring to legacy script variable.
Solution:   Do allow referring to a variable in legacy script without "s:" if
            it exists at compile time. (closes #8076)

3 years agopatch 8.2.2728: special key names don't work if 'isident' is cleared v8.2.2728
Bram Moolenaar [Tue, 6 Apr 2021 18:21:59 +0000 (20:21 +0200)]
patch 8.2.2728: special key names don't work if 'isident' is cleared

Problem:    Special key names don't work if 'isident' is cleared.
Solution:   Add vim_isNormalIDc() and use it for special key names.
            (closes #2389)

3 years agopatch 8.2.2727: function test fails v8.2.2727
Bram Moolenaar [Tue, 6 Apr 2021 18:18:29 +0000 (20:18 +0200)]
patch 8.2.2727: function test fails

Problem:    Function test fails.
Solution:   Adjust expected error number.

3 years agopatch 8.2.2726: confusing error message with white space before comma v8.2.2726
Bram Moolenaar [Tue, 6 Apr 2021 17:01:03 +0000 (19:01 +0200)]
patch 8.2.2726: confusing error message with white space before comma

Problem:    Confusing error message with white space before comma in the
            arguments of a function declaration.
Solution:   Give a specific error message. (closes #2235)

3 years agopatch 8.2.2725: Vim9: message about compiling is wrong when using try/catch v8.2.2725
Bram Moolenaar [Mon, 5 Apr 2021 20:27:37 +0000 (22:27 +0200)]
patch 8.2.2725: Vim9: message about compiling is wrong when using try/catch

Problem:    Vim9: message about compiling is wrong when using try/catch.
Solution:   Store the compiling flag with the message. (closes #8071)

3 years agopatch 8.2.2724: Vim9: concatenating to list in dict not tested v8.2.2724
Bram Moolenaar [Mon, 5 Apr 2021 19:05:26 +0000 (21:05 +0200)]
patch 8.2.2724: Vim9: concatenating to list in dict not tested

Problem:    Vim9: concatenating to list in dict not tested.
Solution:   Add a test. (issue #8068)

3 years agopatch 8.2.2723: assignment test fails v8.2.2723
Bram Moolenaar [Mon, 5 Apr 2021 18:59:41 +0000 (20:59 +0200)]
patch 8.2.2723: assignment test fails

Problem:    Assignment test fails.
Solution:   Adjust error number.

3 years agopatch 8.2.2722: Vim9: crash when using LHS with double index v8.2.2722
Bram Moolenaar [Mon, 5 Apr 2021 18:51:00 +0000 (20:51 +0200)]
patch 8.2.2722: Vim9: crash when using LHS with double index

Problem:    Vim9: crash when using LHS with double index.
Solution:   Handle lhs_dest which is "dest_expr". (closes #8068)
            Fix confusing error message for missing dict item.

3 years agopatch 8.2.2721: Vim9: cannot have a linebreak inside a lambda v8.2.2721
Bram Moolenaar [Mon, 5 Apr 2021 17:41:21 +0000 (19:41 +0200)]
patch 8.2.2721: Vim9: cannot have a linebreak inside a lambda

Problem:    Vim9: cannot have a linebreak inside a lambda.
Solution:   Compile the expression before the arguments.

3 years agopatch 8.2.2720: GTK menu tooltip moves the cursor v8.2.2720
Bram Moolenaar [Mon, 5 Apr 2021 16:20:45 +0000 (18:20 +0200)]
patch 8.2.2720: GTK menu tooltip moves the cursor

Problem:    GTK menu tooltip moves the cursor.
Solution:   Position the cursor after displaying the tooltip.  Do not show the
            tooltip when editing the command line.

3 years agopatch 8.2.2719: Vim9: appending to dict item doesn't work in a :def function v8.2.2719
Bram Moolenaar [Mon, 5 Apr 2021 15:11:17 +0000 (17:11 +0200)]
patch 8.2.2719: Vim9: appending to dict item doesn't work in a :def function

Problem:    Vim9: appending to dict item doesn't work in a :def function.
Solution:   Implement assignment with operator on indexed item.

3 years agopatch 8.2.2718: Vim9: no explicit test for using a global function without g: v8.2.2718
Bram Moolenaar [Mon, 5 Apr 2021 13:38:51 +0000 (15:38 +0200)]
patch 8.2.2718: Vim9: no explicit test for using a global function without g:

Problem:    Vim9: no explicit test for using a global function without the g:
            prefix.
Solution:   Add a test case.

3 years agopatch 8.2.2717: GTK menu items don't show a tooltip v8.2.2717
Bram Moolenaar [Mon, 5 Apr 2021 12:13:20 +0000 (14:13 +0200)]
patch 8.2.2717: GTK menu items don't show a tooltip

Problem:    GTK menu items don't show a tooltip.
Solution:   Add a callback to show the tooltip. (Leonid V. Fedorenchik,
            closes #8067, closes #7810)

3 years agopatch 8.2.2716: the equivalent class regexp is missing some characters v8.2.2716
Bram Moolenaar [Mon, 5 Apr 2021 11:59:53 +0000 (13:59 +0200)]
patch 8.2.2716: the equivalent class regexp is missing some characters

Problem:    The equivalent class regexp is missing some characters.
Solution:   Update the list of equivalent characters. (Dominique Pellé,
            closes #8029)

3 years agopatch 8.2.2715: Vim9: tests fail without the channel feature v8.2.2715
Bram Moolenaar [Mon, 5 Apr 2021 11:36:34 +0000 (13:36 +0200)]
patch 8.2.2715: Vim9: tests fail without the channel feature

Problem:    Vim9: tests fail without the channel feature. (Dominique Pellé)
Solution:   Check for the channel feature. (closes #8063)

3 years agopatch 8.2.2714: filetype pattern ending in star is too far up v8.2.2714
Bram Moolenaar [Mon, 5 Apr 2021 11:10:43 +0000 (13:10 +0200)]
patch 8.2.2714: filetype pattern ending in star is too far up

Problem:    Filetype pattern ending in star is too far up.
Solution:   Move down to where patterns ending in star belong. (closes #8065)

3 years agopatch 8.2.2713: folding code not sufficiently tested v8.2.2713
Bram Moolenaar [Mon, 5 Apr 2021 10:47:25 +0000 (12:47 +0200)]
patch 8.2.2713: folding code not sufficiently tested

Problem:    Folding code not sufficiently tested.
Solution:   Add a few more test cases. (Yegappan Lakshmanan, closes #8064)

3 years agopatch 8.2.2712: memory leak when adding to a blob fails v8.2.2712
Bram Moolenaar [Sun, 4 Apr 2021 19:55:23 +0000 (21:55 +0200)]
patch 8.2.2712: memory leak when adding to a blob fails

Problem:    Memory leak when adding to a blob fails.
Solution:   Clear the second typval before returning.

3 years agopatch 8.2.2711: "gj" in a closed fold does not move out of the fold v8.2.2711
Bram Moolenaar [Sun, 4 Apr 2021 19:26:04 +0000 (21:26 +0200)]
patch 8.2.2711: "gj" in a closed fold does not move out of the fold

Problem:    "gj" in a closed fold does not move out of the fold. (Marco Hinz)
Solution:   Add a check for being in a closed fold. (closes #8062)

3 years agopatch 8.2.2710: Vim9: not all tests cover script and :def function v8.2.2710
Bram Moolenaar [Sun, 4 Apr 2021 18:49:50 +0000 (20:49 +0200)]
patch 8.2.2710: Vim9: not all tests cover script and :def function

Problem:    Vim9: not all tests cover script and :def function.
Solution:   Run tests in both if possible. Fix differences.

3 years agopatch 8.2.2709: the GTK GUI has a gap next to the scrollbar v8.2.2709
Bram Moolenaar [Sun, 4 Apr 2021 13:57:12 +0000 (15:57 +0200)]
patch 8.2.2709: the GTK GUI has a gap next to the scrollbar

Problem:    The GTK GUI has a gap next to the scrollbar.
Solution:   Calculate the scrollbar padding for GTK. (closes #8027)

3 years agopatch 8.2.2708: test sometimes fails waiting for shell in terminal v8.2.2708
Bram Moolenaar [Sun, 4 Apr 2021 13:28:59 +0000 (15:28 +0200)]
patch 8.2.2708: test sometimes fails waiting for shell in terminal

Problem:    Test sometimes fails waiting for shell in terminal.
Solution:   Use WaitForAssert() so we can see the actual job status.  Use
            Run_shell_in_terminal().

3 years agopatch 8.2.2707: adding a lot of completions can still be a bit slow v8.2.2707
Bram Moolenaar [Sun, 4 Apr 2021 13:05:22 +0000 (15:05 +0200)]
patch 8.2.2707: adding a lot of completions can still be a bit slow

Problem:    Adding a lot of completions can still be a bit slow.
Solution:   Add the check for CP_FAST. (Ben Jackson)

3 years agopatch 8.2.2706: Vim9: wrong line number reported for boolean operator v8.2.2706
Bram Moolenaar [Sat, 3 Apr 2021 19:47:07 +0000 (21:47 +0200)]
patch 8.2.2706: Vim9: wrong line number reported for boolean operator

Problem:    Vim9: wrong line number reported for boolean operator.
Solution:   Use the line number before skipping over line break.
            (closes #8058)

3 years agopatch 8.2.2705: Vim9: misleading reported line number for wrong type v8.2.2705
Bram Moolenaar [Sat, 3 Apr 2021 19:01:01 +0000 (21:01 +0200)]
patch 8.2.2705: Vim9: misleading reported line number for wrong type

Problem:    Vim9: misleading reported line number for wrong type.
Solution:   Remember and use the line number at the start. (closes #8059)

3 years agopatch 8.2.2704: adding a lot of completions can be a bit slow v8.2.2704
Bram Moolenaar [Sat, 3 Apr 2021 18:13:30 +0000 (20:13 +0200)]
patch 8.2.2704: adding a lot of completions can be a bit slow

Problem:    Adding a lot of completions can be a bit slow.
Solution:   Use fast_breakcheck() instead of ui_breakcheck() when adding a
            list of completions. (Ben Jackson, closes #8061)

3 years agopatch 8.2.2703: Vim9: memory leak when failing on locked variable v8.2.2703
Bram Moolenaar [Sat, 3 Apr 2021 17:32:44 +0000 (19:32 +0200)]
patch 8.2.2703: Vim9: memory leak when failing on locked variable

Problem:    Vim9: memory leak when failing on locked variable.
Solution:   Free the memory.

3 years agopatch 8.2.2702: compiler completion test fails when more scripts are added v8.2.2702
Bram Moolenaar [Sat, 3 Apr 2021 17:07:05 +0000 (19:07 +0200)]
patch 8.2.2702: compiler completion test fails when more scripts are added

Problem:    Compiler completion test fails when more scripts are added.
Solution:   Add a more generic pattern.

3 years agopatch 8.2.2701: order of removing FORTIFY_SOURCE is wrong v8.2.2701
Bram Moolenaar [Sat, 3 Apr 2021 15:33:52 +0000 (17:33 +0200)]
patch 8.2.2701: order of removing FORTIFY_SOURCE is wrong

Problem:    Order of removing FORTIFY_SOURCE is wrong.
Solution:   Use the more specific pattern first.

3 years agopatch 8.2.2700: nested autocmd test fails sometimes v8.2.2700
Bram Moolenaar [Sat, 3 Apr 2021 15:22:29 +0000 (17:22 +0200)]
patch 8.2.2700: nested autocmd test fails sometimes

Problem:    Nested autocmd test fails sometimes.
Solution:   Wait for the job to finish.

3 years agopatch 8.2.2699: Lua test fails v8.2.2699
Bram Moolenaar [Sat, 3 Apr 2021 15:18:52 +0000 (17:18 +0200)]
patch 8.2.2699: Lua test fails

Problem:    Lua test fails.
Solution:   Fix condition. (Yegappan Lakshmanan, closes #8060)

3 years agopatch 8.2.2698: Lua test fails on MS-Windows v8.2.2698
Bram Moolenaar [Sat, 3 Apr 2021 13:35:50 +0000 (15:35 +0200)]
patch 8.2.2698: Lua test fails on MS-Windows

Problem:    Lua test fails on MS-Windows.
Solution:   Fall back to old method if "lua -v" doesn't work.

3 years agopatch 8.2.2697: function list test fails v8.2.2697
Bram Moolenaar [Sat, 3 Apr 2021 13:15:47 +0000 (15:15 +0200)]
patch 8.2.2697: function list test fails

Problem:    Function list test fails.
Solution:   Add missing function. (Yegappan Lakshmanan)

3 years agopatch 8.2.2696: Lua test fails with Lua 5.4.3 and later v8.2.2696
Bram Moolenaar [Sat, 3 Apr 2021 12:13:33 +0000 (14:13 +0200)]
patch 8.2.2696: Lua test fails with Lua 5.4.3 and later

Problem:    Lua test fails with Lua 5.4.3 and later.
Solution:   Check for different error messages. (Yegappan Lakshmanan,
            closes #8050)

3 years agopatch 8.2.2695: cursor position reset with nested autocommands v8.2.2695
Bram Moolenaar [Sat, 3 Apr 2021 11:19:26 +0000 (13:19 +0200)]
patch 8.2.2695: cursor position reset with nested autocommands

Problem:    Cursor position reset with nested autocommands.
Solution:   Only check and reset line numbers for not nested autocommands.
            (closes #5820)

3 years agopatch 8.2.2694: when 'matchpairs' is empty every character beeps v8.2.2694
Bram Moolenaar [Fri, 2 Apr 2021 16:55:57 +0000 (18:55 +0200)]
patch 8.2.2694: when 'matchpairs' is empty every character beeps

Problem:    When 'matchpairs' is empty every character beeps. (Marco Hinz)
Solution:   Bail out when no character in 'matchpairs' was found.
            (closes #8053)  Add assert_nobeep().

3 years agopatch 8.2.2693: Vim9: locked script variable can be changed v8.2.2693
Bram Moolenaar [Fri, 2 Apr 2021 12:44:02 +0000 (14:44 +0200)]
patch 8.2.2693: Vim9: locked script variable can be changed

Problem:    Vim9: locked script variable can be changed.
Solution:   Check legacy script variable for being locked. (issue #8031)

3 years agopatch 8.2.2692: Vim9: locked script variable can be changed v8.2.2692
Bram Moolenaar [Fri, 2 Apr 2021 12:35:15 +0000 (14:35 +0200)]
patch 8.2.2692: Vim9: locked script variable can be changed

Problem:    Vim9: locked script variable can be changed.
Solution:   Check for locked value. (closes #8031)

3 years agopatch 8.2.2691: autoconf may mess up compiler flags v8.2.2691
Bram Moolenaar [Fri, 2 Apr 2021 11:30:59 +0000 (13:30 +0200)]
patch 8.2.2691: autoconf may mess up compiler flags

Problem:    Autoconf may mess up compiler flags.
Solution:   Handle removing FORTIFY_SOURCE a bit better. (Vladimir Lomov,
            closes #8049)

3 years agopatch 8.2.2690: PowerShell files are not recognized v8.2.2690
Bram Moolenaar [Fri, 2 Apr 2021 11:00:15 +0000 (13:00 +0200)]
patch 8.2.2690: PowerShell files are not recognized

Problem:    PowerShell files are not recognized.
Solution:   Recognize several PowerShell extension. (Heath Stewart,
            closes #8051)

3 years agopatch 8.2.2689: tiny build fails v8.2.2689
Bram Moolenaar [Thu, 1 Apr 2021 19:57:46 +0000 (21:57 +0200)]
patch 8.2.2689: tiny build fails

Problem:    Tiny build fails.
Solution:   Add #ifdef around use of p_stl.

3 years agopatch 8.2.2688: Vim9: crash when using s: for script variable v8.2.2688
Bram Moolenaar [Thu, 1 Apr 2021 19:38:53 +0000 (21:38 +0200)]
patch 8.2.2688: Vim9: crash when using s: for script variable

Problem:    Vim9: crash when using s: for script variable.
Solution:   Pass the end pointer. (closes #8045)

3 years agopatch 8.2.2687: Vim9: cannot use "const" for global variable in :def function v8.2.2687
Bram Moolenaar [Thu, 1 Apr 2021 17:42:48 +0000 (19:42 +0200)]
patch 8.2.2687: Vim9: cannot use "const" for global variable in :def function

Problem:    Vim9: cannot use "const" for global variable in :def function.
Solution:   Do allow using :const for a global variable. (closes #8030)

3 years agopatch 8.2.2686: status line is not updated when going to cmdline mode v8.2.2686
Bram Moolenaar [Thu, 1 Apr 2021 16:47:14 +0000 (18:47 +0200)]
patch 8.2.2686: status line is not updated when going to cmdline mode

Problem:    Status line is not updated when going to cmdline mode.
Solution:   Redraw status lines if 'statusline' is set and going to status
            line mode. (based on patch from Justin M. Keyes et al.,
            closes #8044)

3 years agopatch 8.2.2685: custom statusline not drawn correctly with WinBar v8.2.2685
Bram Moolenaar [Thu, 1 Apr 2021 14:16:18 +0000 (16:16 +0200)]
patch 8.2.2685: custom statusline not drawn correctly with WinBar

Problem:    Custom statusline not drawn correctly with WinBar.
Solution:   Also adjust the column for the custom status line. (Yee Cheng
            Chin, closes #8047)

3 years agopatch 8.2.2684: not enough folding code is tested v8.2.2684
Bram Moolenaar [Thu, 1 Apr 2021 11:39:51 +0000 (13:39 +0200)]
patch 8.2.2684: not enough folding code is tested

Problem:    Not enough folding code is tested.
Solution:   Add more test cases. (Yegappan Lakshmanan, closes #8046)

3 years agopatch 8.2.2683: build failure without the +eval feature v8.2.2683
Bram Moolenaar [Thu, 1 Apr 2021 11:17:50 +0000 (13:17 +0200)]
patch 8.2.2683: build failure without the +eval feature

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

3 years agopatch 8.2.2682: Vim9: cannot find Name.Func from "import * as Name" v8.2.2682
Bram Moolenaar [Thu, 1 Apr 2021 10:57:57 +0000 (12:57 +0200)]
patch 8.2.2682: Vim9: cannot find Name.Func from "import * as Name"

Problem:    Vim9: cannot find Name.Func from "import * as Name". (Alexander
            Goussas)
Solution:   When no variable found try finding a function. (closes #8045)
            Check that the function was exported.

3 years agopatch 8.2.2681: Vim9: test fails for redeclaring script variable v8.2.2681
Bram Moolenaar [Wed, 31 Mar 2021 19:47:33 +0000 (21:47 +0200)]
patch 8.2.2681: Vim9: test fails for redeclaring script variable

Problem:    Vim9: test fails for redeclaring script variable.
Solution:   It's OK to assign to an existing script variable in legacy.

3 years agopatch 8.2.2680: Vim9: problem defining a script variable from legacy function v8.2.2680
Bram Moolenaar [Wed, 31 Mar 2021 19:07:24 +0000 (21:07 +0200)]
patch 8.2.2680: Vim9: problem defining a script variable from legacy function

Problem:    Vim9: problem defining a script variable from legacy function.
Solution:   Check if the script is Vim9, not the current syntax.
            (closes #8032)

3 years agoUpdate runtime files.
Bram Moolenaar [Wed, 31 Mar 2021 18:07:33 +0000 (20:07 +0200)]
Update runtime files.

3 years agopatch 8.2.2679: status line missing for non-current window with winbar v8.2.2679
Bram Moolenaar [Tue, 30 Mar 2021 20:12:12 +0000 (22:12 +0200)]
patch 8.2.2679: status line missing for non-current window with winbar

Problem:    Winbar drawn over status line for non-current window with winbar
            if frame is zero height. (Leonid V. Fedorenchik)
Solution:   Do not draw the window if the frame height is zero. (closes #8037)

3 years agopatch 8.2.2678: test for 'autoshelldir' does not reset the option v8.2.2678
Bram Moolenaar [Tue, 30 Mar 2021 18:54:28 +0000 (20:54 +0200)]
patch 8.2.2678: test for 'autoshelldir' does not reset the option

Problem:    Test for 'autoshelldir' does not reset the option.
Solution:   Reset the option after testing.

3 years agopatch 8.2.2677: Vim9: cannot use only some of the default arguments v8.2.2677
Bram Moolenaar [Mon, 29 Mar 2021 20:14:55 +0000 (22:14 +0200)]
patch 8.2.2677: Vim9: cannot use only some of the default arguments

Problem:    Vim9: cannot use only some of the default arguments.
Solution:   Use v:none to use default argument value.  Remove
            uf_def_arg_idx[], use JUMP_IF_ARG_SET. (closes #6504)

3 years agopatch 8.2.2676: missing error message v8.2.2676
Bram Moolenaar [Mon, 29 Mar 2021 19:06:04 +0000 (21:06 +0200)]
patch 8.2.2676: missing error message

Problem:    Missing error message.
Solution:   Add new error message.

3 years agopatch 8.2.2675: directory change in a terminal window shell is not followed v8.2.2675
Bram Moolenaar [Mon, 29 Mar 2021 18:49:05 +0000 (20:49 +0200)]
patch 8.2.2675: directory change in a terminal window shell is not followed

Problem:    Directory change in a terminal window shell is not followed.
Solution:   Add the 'autoshelldir' option. (closes #6290)

3 years agopatch 8.2.2674: Motif: cancelling the font dialog resets the font v8.2.2674
Bram Moolenaar [Mon, 29 Mar 2021 18:10:26 +0000 (20:10 +0200)]
patch 8.2.2674: Motif: cancelling the font dialog resets the font

Problem:    Motif: cancelling the font dialog resets the font.
Solution:   When no font is selected to not change the font. (closes #7825,
            closes #8035)  Fix compiler warnings.

3 years agopatch 8.2.2673: Vim9: script-local funcref can have lower case name v8.2.2673
Bram Moolenaar [Sun, 28 Mar 2021 19:14:06 +0000 (21:14 +0200)]
patch 8.2.2673: Vim9: script-local funcref can have lower case name

Problem:    Vim9: script-local funcref can have lower case name.
Solution:   Require an upper case name.

3 years agopatch 8.2.2672: Vim9: cannot use :lockvar and :unlockvar in compiled script v8.2.2672
Bram Moolenaar [Sun, 28 Mar 2021 18:38:34 +0000 (20:38 +0200)]
patch 8.2.2672: Vim9: cannot use :lockvar and :unlockvar in compiled script

Problem:    Vim9: cannot use :lockvar and :unlockvar in compiled script.
Solution:   Implement locking support.

3 years agopatch 8.2.2671: error for line number in legacy script v8.2.2671
Bram Moolenaar [Sun, 28 Mar 2021 14:26:41 +0000 (16:26 +0200)]
patch 8.2.2671: error for line number in legacy script

Problem:    Error for line number in legacy script.
Solution:   Check for number type.

3 years agopatch 8.2.2670: Vim9: error for append(0, text) v8.2.2670
Bram Moolenaar [Sun, 28 Mar 2021 13:46:16 +0000 (15:46 +0200)]
patch 8.2.2670: Vim9: error for append(0, text)

Problem:    Vim9: error for append(0, text).
Solution:   Check for negative number. (closes #8022)

3 years agopatch 8.2.2669: command line completion does not work after "vim9" v8.2.2669
Bram Moolenaar [Sun, 28 Mar 2021 13:29:43 +0000 (15:29 +0200)]
patch 8.2.2669: command line completion does not work after "vim9"

Problem:    Command line completion does not work after "vim9".
Solution:   Include the "9". (Naohiro Ono, closes #8025)

3 years agopatch 8.2.2668: Vim9: omitting "call" for "confirm()" does not give an error v8.2.2668
Bram Moolenaar [Sat, 27 Mar 2021 21:20:21 +0000 (22:20 +0100)]
patch 8.2.2668: Vim9: omitting "call" for "confirm()" does not give an error

Problem:    Vim9: omitting "call" for "confirm()" does not give an error.
Solution:   Do not recognize a modifier followed by "(".

3 years agopatch 8.2.2667: prop_find() cannot find item matching both id and type v8.2.2667
Bram Moolenaar [Sat, 27 Mar 2021 21:07:29 +0000 (22:07 +0100)]
patch 8.2.2667: prop_find() cannot find item matching both id and type

Problem:    prop_find() cannot find item matching both id and type.
Solution:   Add the "both" argument. (Naohiro Ono, closes #8019)

3 years agopatch 8.2.2666: Vim9: not enough function arguments checked for string v8.2.2666
Bram Moolenaar [Sat, 27 Mar 2021 20:23:30 +0000 (21:23 +0100)]
patch 8.2.2666: Vim9: not enough function arguments checked for string

Problem:    Vim9: not enough function arguments checked for string.
Solution:   Check in ch_logfile(), char2nr() and others.

3 years agopatch 8.2.2665: test failures v8.2.2665
Bram Moolenaar [Sat, 27 Mar 2021 18:09:02 +0000 (19:09 +0100)]
patch 8.2.2665: test failures

Problem:    Test failures.
Solution:   Check more specific feature.  Add missing change.

3 years agopatch 8.2.2664: Vim9: not enough function arguments checked for string v8.2.2664
Bram Moolenaar [Sat, 27 Mar 2021 17:59:25 +0000 (18:59 +0100)]
patch 8.2.2664: Vim9: not enough function arguments checked for string

Problem:    Vim9: not enough function arguments checked for string.
Solution:   Check in balloon functions.  Refactor function arguments.

3 years agopatch 8.2.2663: Vim9: leaking memory when inline function has an error v8.2.2663
Bram Moolenaar [Sat, 27 Mar 2021 14:40:11 +0000 (15:40 +0100)]
patch 8.2.2663: Vim9: leaking memory when inline function has an error

Problem:    Vim9: leaking memory when inline function has an error.
Solution:   Free the partially allocated function.

3 years agopatch 8.2.2662: there is no way to avoid some escape sequences v8.2.2662
Bram Moolenaar [Sat, 27 Mar 2021 11:11:33 +0000 (12:11 +0100)]
patch 8.2.2662: there is no way to avoid some escape sequences

Problem:    There is no way to avoid some escape sequences.
Solution:   Suppress escape sequences when the --not-a-term argument is used.
            (Gary Johnson)

3 years agopatch 8.2.2661: leaking memory when looping over a string v8.2.2661
Bram Moolenaar [Fri, 26 Mar 2021 21:15:26 +0000 (22:15 +0100)]
patch 8.2.2661: leaking memory when looping over a string

Problem:    Leaking memory when looping over a string.
Solution:   Free the memory.

3 years agopatch 8.2.2660: Vim9: no error for declaration with trailing text v8.2.2660
Bram Moolenaar [Fri, 26 Mar 2021 20:27:52 +0000 (21:27 +0100)]
patch 8.2.2660: Vim9: no error for declaration with trailing text

Problem:    Vim9: no error for declaration with trailing text.
Solution:   Give an error. (closes #8014)

3 years agopatch 8.2.2659: eval test fails because for loop on string works v8.2.2659
Bram Moolenaar [Fri, 26 Mar 2021 19:56:45 +0000 (20:56 +0100)]
patch 8.2.2659: eval test fails because for loop on string works

Problem:    Eval test fails because for loop on string works.
Solution:   Check looping over function reference fails.

3 years agopatch 8.2.2658: :for cannot loop over a string v8.2.2658
Bram Moolenaar [Fri, 26 Mar 2021 19:41:29 +0000 (20:41 +0100)]
patch 8.2.2658: :for cannot loop over a string

Problem:    :for cannot loop over a string.
Solution:   Accept a string argument and iterate over its characters.

3 years agopatch 8.2.2657: Vim9: error message for declaring variable in for loop v8.2.2657
Bram Moolenaar [Fri, 26 Mar 2021 17:49:22 +0000 (18:49 +0100)]
patch 8.2.2657: Vim9: error message for declaring variable in for loop

Problem:    Vim9: error message for declaring variable in for loop.
Solution:   Clear variables when entering block again. (closes #8012)

3 years agopatch 8.2.2656: some command line arguments and regexp errors not tested v8.2.2656
Bram Moolenaar [Fri, 26 Mar 2021 16:24:34 +0000 (17:24 +0100)]
patch 8.2.2656: some command line arguments and regexp errors not tested

Problem:    Some command line arguments and regexp errors not tested.
Solution:   Add a few test cases. (Dominique Pellé, closes #8013)

3 years agopatch 8.2.2655: The -w command line argument doesn't work v8.2.2655
Bram Moolenaar [Fri, 26 Mar 2021 13:14:18 +0000 (14:14 +0100)]
patch 8.2.2655: The -w command line argument doesn't work

Problem:    The -w command line argument doesn't work.
Solution:   Don't set 'window' when set with the -w argument. (closes #8011)

3 years agopatch 8.2.2654: Vim9: getting a character from a string can be slow v8.2.2654
Bram Moolenaar [Fri, 26 Mar 2021 12:34:05 +0000 (13:34 +0100)]
patch 8.2.2654: Vim9: getting a character from a string can be slow

Problem:    Vim9: getting a character from a string can be slow.
Solution:   Avoid a function call to get the character byte size. (#8000)

3 years agopatch 8.2.2653: build failure v8.2.2653
Bram Moolenaar [Thu, 25 Mar 2021 21:22:30 +0000 (22:22 +0100)]
patch 8.2.2653: build failure

Problem:    Build failure.
Solution:   Add missing changes.