]> granicus.if.org Git - vim/log
vim
3 years agopatch 8.2.2848: crash whn calling partial v8.2.2848
Dominique Pelle [Thu, 13 May 2021 12:55:55 +0000 (14:55 +0200)]
patch 8.2.2848: crash whn calling partial

Problem:    Crash whn calling partial.
Solution:   Check for NULL pointer. (Dominique Pellé, closes #8202)

3 years agopatch 8.2.2847: Perl not tested sufficiently v8.2.2847
Dominique Pelle [Mon, 10 May 2021 21:49:39 +0000 (23:49 +0200)]
patch 8.2.2847: Perl not tested sufficiently

Problem:    Perl not tested sufficiently.
Solution:   Add test.  Also test W17. (Dominique Pellé, closes #8193)

3 years agopatch 8.2.2846: Vim9: "echo Func()" does not give an error for using void v8.2.2846
Bram Moolenaar [Sun, 9 May 2021 21:19:22 +0000 (23:19 +0200)]
patch 8.2.2846: Vim9: "echo Func()" does not give an error for using void

Problem:    Vim9: "echo Func()" does not give an error for a function without
            a return value.
Solution:   Give an error.  Be more specific about why a value is invalid.

3 years agopatch 8.2.2845: MS-Windows: warning for signed/unsigned comparison v8.2.2845
Bram Moolenaar [Sat, 8 May 2021 18:09:24 +0000 (20:09 +0200)]
patch 8.2.2845: MS-Windows: warning for signed/unsigned comparison

Problem:    MS-Windows: warning for signed/unsigned comparison.
Solution:   Add type cast.

3 years agopatch 8.2.2844: Vim9: memory leak when using searchpair() v8.2.2844
Bram Moolenaar [Fri, 7 May 2021 18:43:54 +0000 (20:43 +0200)]
patch 8.2.2844: Vim9: memory leak when using searchpair()

Problem:    Vim9: memory leak when using searchpair().
Solution:   Free the v_instr field.

3 years agopatch 8.2.2843: Vim9: skip argument to searchpairpos() is not compiled v8.2.2843
Bram Moolenaar [Fri, 7 May 2021 17:44:21 +0000 (19:44 +0200)]
patch 8.2.2843: Vim9: skip argument to searchpairpos() is not compiled

Problem:    Vim9: skip argument to searchpairpos() is not compiled.
Solution:   Handle like searchpair().  Also for search() and searchpos().

3 years agopatch 8.2.2842: Vim9: skip argument to searchpair() is not compiled v8.2.2842
Bram Moolenaar [Fri, 7 May 2021 15:55:55 +0000 (17:55 +0200)]
patch 8.2.2842: Vim9: skip argument to searchpair() is not compiled

Problem:    Vim9: skip argument to searchpair() is not compiled.
Solution:   Add VAR_INSTR.

3 years agopatch 8.2.2841: MS-Windows: cursor wrong when 'lz' and 'stl' are set v8.2.2841
matveyt [Fri, 7 May 2021 13:00:17 +0000 (15:00 +0200)]
patch 8.2.2841: MS-Windows: cursor wrong when 'lz' and 'stl' are set

Problem:    MS-Windows: cursor in wrong position when 'lazyredraw' and
            'statusline' are set.
Solution:   Call compute_cmdrow(). (closes #8170, closes #8184)

3 years agopatch 8.2.2840: Vim9: member operation not fully tested v8.2.2840
Bram Moolenaar [Thu, 6 May 2021 19:04:55 +0000 (21:04 +0200)]
patch 8.2.2840: Vim9: member operation not fully tested

Problem:    Vim9: member operation not fully tested.
Solution:   Add a few tests.

3 years agopatch 8.2.2839: default redirection missing "ash" and "dash" v8.2.2839
Natanael Copa [Thu, 6 May 2021 16:46:35 +0000 (18:46 +0200)]
patch 8.2.2839: default redirection missing "ash" and "dash"

Problem:    Default redirection missing "ash" and "dash".
Solution:   Recognize "ash" and "dash". (Natanael Copa, closes #8180)

3 years agopatch 8.2.2838: file extension .wrap not recognized v8.2.2838
Liam Beguin [Thu, 6 May 2021 15:45:22 +0000 (17:45 +0200)]
patch 8.2.2838: file extension .wrap not recognized

Problem:    File extension .wrap not recognized.
Solution:   Use dosini filetype for .wrap files. (Liam Beguin, closes #8177)

3 years agopatch 8.2.2837: various code lines not covered by tests v8.2.2837
Dominique Pelle [Thu, 6 May 2021 15:36:55 +0000 (17:36 +0200)]
patch 8.2.2837: various code lines not covered by tests

Problem:    Various code lines not covered by tests.
Solution:   Add test cases. (Dominique Pellé, closes #8178)

3 years agopatch 8.2.2836: build failure without the +quickfix feature v8.2.2836
Bram Moolenaar [Wed, 5 May 2021 20:51:39 +0000 (22:51 +0200)]
patch 8.2.2836: build failure without the +quickfix feature

Problem:    Build failure without the +quickfix feature. (John Marriott)
Solution:   Add #ifdef.

3 years agopatch 8.2.2835: Vim9: leaking memory in :cexpr v8.2.2835
Bram Moolenaar [Wed, 5 May 2021 20:40:56 +0000 (22:40 +0200)]
patch 8.2.2835: Vim9: leaking memory in :cexpr

Problem:    Vim9: leaking memory in :cexpr.
Solution:   Also free the command line copy.

3 years agopatch 8.2.2834: Vim9: :cexpr does not work with local variables v8.2.2834
Bram Moolenaar [Wed, 5 May 2021 19:31:39 +0000 (21:31 +0200)]
patch 8.2.2834: Vim9: :cexpr does not work with local variables

Problem:    Vim9: :cexpr does not work with local variables.
Solution:   Compile :cexpr.

3 years agopatch 8.2.2833: two key command cancelled by moving mouse when using popup v8.2.2833
Bram Moolenaar [Wed, 5 May 2021 17:58:17 +0000 (19:58 +0200)]
patch 8.2.2833: two key command cancelled by moving mouse when using popup

Problem:    Two key command cancelled by moving mouse when using popup.
            (Sergey Vlasov)
Solution:   Ignore K_MOUSEMOVE in plain_vgetc().

3 years agopatch 8.2.2832: operator cancelled by moving mouse when using popup v8.2.2832
Bram Moolenaar [Tue, 4 May 2021 19:56:28 +0000 (21:56 +0200)]
patch 8.2.2832: operator cancelled by moving mouse when using popup

Problem:    Operator cancelled by moving mouse when using popup. (Sergey
            Vlasov)
Solution:   Do not trigger an operator for a mouse move events. (closes #8176)

3 years agopatch 8.2.2831: Vim9: expandcmd() not tested v8.2.2831
Bram Moolenaar [Mon, 3 May 2021 19:40:26 +0000 (21:40 +0200)]
patch 8.2.2831: Vim9: expandcmd() not tested

Problem:    Vim9: expandcmd() not tested.
Solution:   Add a test.

3 years agopatch 8.2.2830: terminal colors are not updated when 'background' is set v8.2.2830
Bram Moolenaar [Mon, 3 May 2021 18:40:38 +0000 (20:40 +0200)]
patch 8.2.2830: terminal colors are not updated when 'background' is set

Problem:    Terminal colors are not updated when 'background' is set.
Solution:   Call term_update_colors() for all terminals. (Marcin Szamotulski,
            closes #8171, closes #8150)

3 years agopatch 8.2.2829: some comments are not correct or clear v8.2.2829
Bram Moolenaar [Mon, 3 May 2021 18:01:45 +0000 (20:01 +0200)]
patch 8.2.2829: some comments are not correct or clear

Problem:    Some comments are not correct or clear.
Solution:   Adjust the comments.  Add test for cursor position.

3 years agopatch 8.2.2828: Coverity complains about not checking rename() return value v8.2.2828
Bram Moolenaar [Mon, 3 May 2021 17:49:51 +0000 (19:49 +0200)]
patch 8.2.2828: Coverity complains about not checking rename() return value

Problem:    Coverity complains about not checking the rename() return value.
Solution:   Add "(void)", can't do anything in case of a failure.

3 years agopatch 8.2.2827: test file was not deleted v8.2.2827
Dominique Pelle [Mon, 3 May 2021 17:08:37 +0000 (19:08 +0200)]
patch 8.2.2827: test file was not deleted

Problem:    Test file was not deleted.
Solution:   Uncomment the delete() call. (Dominique Pellé, closes #8172)

3 years agopatch 8.2.2826: compiler warnings for int to size_t conversion v8.2.2826
Bram Moolenaar [Mon, 3 May 2021 16:57:05 +0000 (18:57 +0200)]
patch 8.2.2826: compiler warnings for int to size_t conversion

Problem:    Compiler warnings for int to size_t conversion. (Randall W.
            Morris)
Solution:   Add type casts.

3 years agopatch 8.2.2825: code in checkreadonly() not fully tested v8.2.2825
Dominique Pelle [Sun, 2 May 2021 18:16:24 +0000 (20:16 +0200)]
patch 8.2.2825: code in checkreadonly() not fully tested

Problem:    Code in checkreadonly() not fully tested.
Solution:   Add more tests. (Dominique Pellé, closes #8169)

3 years agopatch 8.2.2824: MS-Windows: build failure with MSVC v8.2.2824
Bram Moolenaar [Sun, 2 May 2021 17:15:05 +0000 (19:15 +0200)]
patch 8.2.2824: MS-Windows: build failure with MSVC

Problem:    MS-Windows: build failure with MSVC.
Solution:   Adjust the list of distributed files.  Add hint about python.
            Adjust path for reading runtime files.

3 years agoUpdate runtime files
Bram Moolenaar [Sun, 2 May 2021 15:19:11 +0000 (17:19 +0200)]
Update runtime files

3 years agopatch 8.2.2823: MS-Windows: launching Vim from installer doesn't open README v8.2.2823
Bram Moolenaar [Sun, 2 May 2021 11:59:46 +0000 (13:59 +0200)]
patch 8.2.2823: MS-Windows: launching Vim from installer doesn't open README

Problem:    MS-Windows: launching Vim from installer doesn't open README.
Solution:   Adjust the quotes.

3 years agopatch 8.2.2822: MS-Windows: unnessarily loading libraries when unregistering v8.2.2822
Bram Moolenaar [Sat, 1 May 2021 20:41:39 +0000 (22:41 +0200)]
patch 8.2.2822: MS-Windows: unnessarily loading libraries when unregistering

Problem:    MS-Windows: unnessarily loading libraries when unregistering OLE.
Solution:   Also skip loading libraries when invoked with "-unregister".  Run
            Vim for README.txt with user privileges.

3 years agopatch 8.2.2821: MS-Windows: unnessarily loading libraries when registering OLE v8.2.2821
Bram Moolenaar [Sat, 1 May 2021 15:46:03 +0000 (17:46 +0200)]
patch 8.2.2821: MS-Windows: unnessarily loading libraries when registering OLE

Problem:    MS-Windows: unnessarily loading libraries when registering OLE.
Solution:   Skip loading libraries when invoked with "-register".

3 years agopatch 8.2.2820: session file may divide by zero v8.2.2820
Bram Moolenaar [Fri, 30 Apr 2021 19:37:51 +0000 (21:37 +0200)]
patch 8.2.2820: session file may divide by zero

Problem:    Session file may divide by zero.
Solution:   Avoid writing difide by zero. (closes #8162)

3 years agopatch 8.2.2819: finishing an abbreviation with multi-byte char may not work v8.2.2819
Bram Moolenaar [Fri, 30 Apr 2021 17:43:11 +0000 (19:43 +0200)]
patch 8.2.2819: finishing an abbreviation with multi-byte char may not work

Problem:    Finishing an abbreviation with a multi-byte char may not work.
Solution:   Escape K_SPECIAL in the typed character. (closes #8160)

3 years agopatch 8.2.2818: no jump added when opening terminal in current window v8.2.2818
Bram Moolenaar [Thu, 29 Apr 2021 18:18:45 +0000 (20:18 +0200)]
patch 8.2.2818: no jump added  when opening terminal in current window

Problem:    No jump added to jumplist when opening terminal in current window.
Solution:   Call setpcmark(). (closes #8158)

3 years agopatch 8.2.2817: Vim9: script sourcing continues after an error v8.2.2817
Bram Moolenaar [Wed, 28 Apr 2021 18:40:44 +0000 (20:40 +0200)]
patch 8.2.2817: Vim9: script sourcing continues after an error

Problem:    Vim9: script sourcing continues after an error.
Solution:   Make an error in any command in "vim9script" abort sourcing.

3 years agopatch 8.2.2816: Vim9: comment below expression in lambda causes problems v8.2.2816
Bram Moolenaar [Wed, 28 Apr 2021 18:00:40 +0000 (20:00 +0200)]
patch 8.2.2816: Vim9: comment below expression in lambda causes problems

Problem:    Vim9: comment below expression in lambda causes problems.
Solution:   Use a single space for empty and comment lines. (closes #8156)

3 years agopatch 8.2.2815: status line flickers when redrawing popup menu info v8.2.2815
Bram Moolenaar [Tue, 27 Apr 2021 18:06:57 +0000 (20:06 +0200)]
patch 8.2.2815: status line flickers when redrawing popup menu info

Problem:    Status line flickers when redrawing popup menu info.
Solution:   Do not redraw the status line when the focus is in the popup
            window. (issue #8144)

3 years agopatch 8.2.2814: Vim9: unused variable v8.2.2814
Bram Moolenaar [Mon, 26 Apr 2021 19:39:25 +0000 (21:39 +0200)]
patch 8.2.2814: Vim9: unused variable

Problem:    Vim9: unused variable. (John Marriott)
Solution:   Adjust #ifdef.

3 years agopatch 8.2.2813: cannot grep using fuzzy matching v8.2.2813
Yegappan Lakshmanan [Mon, 26 Apr 2021 19:17:52 +0000 (21:17 +0200)]
patch 8.2.2813: cannot grep using fuzzy matching

Problem:    Cannot grep using fuzzy matching.
Solution:   Add the "f" flag to :vimgrep. (Yegappan Lakshmanan, closes #8152)

3 years agopatch 8.2.2812: Vim9: still crash when using substitute expression v8.2.2812
Bram Moolenaar [Mon, 26 Apr 2021 18:32:59 +0000 (20:32 +0200)]
patch 8.2.2812: Vim9: still crash when using substitute expression

Problem:    Vim9: still crash when using substitute expression.
Solution:   Put the instruction list in the stack frame. (closes #8154)

3 years agopatch 8.2.2811: Vim9: error for missing white space doesn't say where v8.2.2811
Bram Moolenaar [Sun, 25 Apr 2021 14:35:55 +0000 (16:35 +0200)]
patch 8.2.2811: Vim9: error for missing white space doesn't say where

Problem:    Vim9: error for missing white space doesn't say where it is
            missing
Solution:   Mention the command. (closes #8149)

3 years agopatch 8.2.2810: Vim9: crash when calling a function in a substitute expression v8.2.2810
Bram Moolenaar [Sun, 25 Apr 2021 12:48:49 +0000 (14:48 +0200)]
patch 8.2.2810: Vim9: crash when calling a function in a substitute expression

Problem:    Vim9: crash when calling a function in a substitute expression.
Solution:   Set the instructions back to the substitute expression
            instrunctions. (closes #8148)

3 years agopatch 8.2.2809: Vim9: :def function compilation fails when using :legacy v8.2.2809
Bram Moolenaar [Sun, 25 Apr 2021 11:54:42 +0000 (13:54 +0200)]
patch 8.2.2809: Vim9: :def function compilation fails when using :legacy

Problem:    Vim9: :def function compilation fails when using :legacy.
Solution:   Reset CMOD_LEGACY when compiling a function. (closes #8137)

3 years agopatch 8.2.2808: Vim9: increment and decrement not sufficiently tested v8.2.2808
Bram Moolenaar [Sat, 24 Apr 2021 18:43:56 +0000 (20:43 +0200)]
patch 8.2.2808: Vim9: increment and decrement not sufficiently tested

Problem:    Vim9: increment and decrement not sufficiently tested.
Solution:   Add assertions.

3 years agopatch 8.2.2807: build fails with tiny features v8.2.2807
Bram Moolenaar [Sat, 24 Apr 2021 18:37:03 +0000 (20:37 +0200)]
patch 8.2.2807: build fails with tiny features

Problem:    Build fails with tiny features.
Solution:   Use a dummy function for ex_incdec().

3 years agopatch 8.2.2806: Vim9: using "++nr" as a command might not work v8.2.2806
Bram Moolenaar [Sat, 24 Apr 2021 17:08:24 +0000 (19:08 +0200)]
patch 8.2.2806: Vim9: using "++nr" as a command might not work

Problem:    Vim9: using "++nr" as a command might not work.
Solution:   Do not recognize "++" and "--" in a following line as addition or
            subtraction.

3 years agopatch 8.2.2805: Vim9: cannot use legacy syntax in Vim9 script v8.2.2805
Bram Moolenaar [Sat, 24 Apr 2021 12:15:41 +0000 (14:15 +0200)]
patch 8.2.2805: Vim9: cannot use legacy syntax in Vim9 script

Problem:    Vim9: cannot use legacy syntax in Vim9 script.
Solution:   Add the :legacy command.

3 years agopatch 8.2.2804: setting buffer local mapping with mapset() changes global v8.2.2804
Bram Moolenaar [Sat, 24 Apr 2021 11:12:38 +0000 (13:12 +0200)]
patch 8.2.2804: setting buffer local mapping with mapset() changes global

Problem:    Setting buffer local mapping with mapset() changes global mapping.
Solution:   Only set the local mapping. (closes #8143)

3 years agopatch 8.2.2803: flicker when the popup menu has an info popup v8.2.2803
Bram Moolenaar [Fri, 23 Apr 2021 19:01:34 +0000 (21:01 +0200)]
patch 8.2.2803: flicker when the popup menu has an info popup

Problem:    Flicker when the popup menu has an info popup.
Solution:   Avoid drawing over the popup when it's going to be redrawn in the
            same position. (closes #8131)  Also avoid redrawing the scrollbar.

3 years agopatch 8.2.2802: Vim9: illegal memory access v8.2.2802
Bram Moolenaar [Fri, 23 Apr 2021 17:32:23 +0000 (19:32 +0200)]
patch 8.2.2802: Vim9: illegal memory access

Problem:    Vim9: illegal memory access.
Solution:   Check for comment before checking for white space. (closes #8142)

3 years agopatch 8.2.2801: free Pascal makefile not recognized v8.2.2801
Bram Moolenaar [Fri, 23 Apr 2021 16:06:48 +0000 (18:06 +0200)]
patch 8.2.2801: free Pascal makefile not recognized

Problem:    Free Pascal makefile not recognized.
Solution:   Add the fpcmake filetype. (Doug Kearns)

3 years agopatch 8.2.2800: after a timer displays text a hit-enter prompt is given v8.2.2800
Bram Moolenaar [Thu, 22 Apr 2021 19:39:30 +0000 (21:39 +0200)]
patch 8.2.2800: after a timer displays text a hit-enter prompt is given

Problem:    After a timer displays text a hit-enter prompt is given.
Solution:   Reset msg_didany and need_wait_return. (closes #8136)

3 years agoUpdate runtime files
Bram Moolenaar [Wed, 21 Apr 2021 16:09:37 +0000 (18:09 +0200)]
Update runtime files

3 years agopatch 8.2.2799: Vim9: type casts don't fully work at the script level v8.2.2799
Bram Moolenaar [Wed, 21 Apr 2021 15:57:26 +0000 (17:57 +0200)]
patch 8.2.2799: Vim9: type casts don't fully work at the script level

Problem:    Vim9: type casts don't fully work at the script level.
Solution:   Implement the missing piece.

3 years agopatch 8.2.2798: Vim9: redir to variable with append does not accept an index v8.2.2798
Bram Moolenaar [Wed, 21 Apr 2021 14:00:10 +0000 (16:00 +0200)]
patch 8.2.2798: Vim9: redir to variable with append does not accept an index

Problem:    Vim9: redir to variable with append does not accept an index.
Solution:   Make the appending work.

3 years agopatch 8.2.2797: Search highlight disappears in the Visual area v8.2.2797
Bram Moolenaar [Wed, 21 Apr 2021 13:11:42 +0000 (15:11 +0200)]
patch 8.2.2797: Search highlight disappears in the Visual area

Problem:    Search highlight disappears in the Visual area.
Solution:   Combine the search attributes. (closes #8134)

3 years agopatch 8.2.2796: Vim9: redir to variable does not accept an index v8.2.2796
Bram Moolenaar [Wed, 21 Apr 2021 12:24:24 +0000 (14:24 +0200)]
patch 8.2.2796: Vim9: redir to variable does not accept an index

Problem:    Vim9: redir to variable does not accept an index.
Solution:   Make the index work.

3 years agopatch 8.2.2795: Coverity warns for not using return value v8.2.2795
Bram Moolenaar [Wed, 21 Apr 2021 10:19:35 +0000 (12:19 +0200)]
patch 8.2.2795: Coverity warns for not using return value

Problem:    Coverity warns for not using return value.
Solution:   Check the return value of compiling the substitute expression.

3 years agopatch 8.2.2794: Linux users don't know how to get ncurses v8.2.2794
Bram Moolenaar [Wed, 21 Apr 2021 09:57:59 +0000 (11:57 +0200)]
patch 8.2.2794: Linux users don't know how to get ncurses

Problem:    Linux users don't know how to get ncurses.
Solution:   Add the name of the package. (closes #8132)

3 years agopatch 8.2.2793: MS-Windows: string literals are writable with MSVC v8.2.2793
Bram Moolenaar [Wed, 21 Apr 2021 09:30:48 +0000 (11:30 +0200)]
patch 8.2.2793: MS-Windows: string literals are writable with MSVC

Problem:    MS-Windows: string literals are writable with MSVC.
Solution:   Add the /GF compiler flag.  Make mch_write() safer. (Ken Takata,
            closes #8133)

3 years agopatch 8.2.2792: Vim9: :disas shows instructions for default args but no text v8.2.2792
Bram Moolenaar [Tue, 20 Apr 2021 20:16:39 +0000 (22:16 +0200)]
patch 8.2.2792: Vim9: :disas shows instructions for default args but no text

Problem:    Vim9: :disas shows instructions for default args but no text.
Solution:   Show the expression test above the default argument instructions.
            (closes #8129)

3 years agopatch 8.2.2791: Vim9: memory leak when using \=expr in :substitute v8.2.2791
Bram Moolenaar [Tue, 20 Apr 2021 19:49:35 +0000 (21:49 +0200)]
patch 8.2.2791: Vim9: memory leak when using \=expr in :substitute

Problem:    Vim9: memory leak when using \=expr in :substitute.
Solution:   Do not allocate a new instruction list.

3 years agopatch 8.2.2790: filetype test fails v8.2.2790
Bram Moolenaar [Tue, 20 Apr 2021 19:14:09 +0000 (21:14 +0200)]
patch 8.2.2790: filetype test fails

Problem:    filetype test fails
Solution:   Also update the scripts detection

3 years agopatch 8.2.2789: Vim9: using \=expr in :substitute does not handle jumps v8.2.2789
Bram Moolenaar [Tue, 20 Apr 2021 19:10:48 +0000 (21:10 +0200)]
patch 8.2.2789: Vim9: using \=expr in :substitute does not handle jumps

Problem:    Vim9: using \=expr in :substitute does not handle jumps.
Solution:   Start with instruction count zero. (closes #8128)

3 years agopatch 8.2.2788: Raku is now the only name what once was called perl6 v8.2.2788
Bram Moolenaar [Tue, 20 Apr 2021 18:21:23 +0000 (20:21 +0200)]
patch 8.2.2788: Raku is now the only name what once was called perl6

Problem:    Raku is now the only name what once was called perl6.
Solution:   Adjust the filetype detection. (closes #8120)

3 years agopatch 8.2.2787: MS-Windows: crash when using :echoconsole v8.2.2787
Bram Moolenaar [Tue, 20 Apr 2021 08:33:28 +0000 (10:33 +0200)]
patch 8.2.2787: MS-Windows: crash when using :echoconsole

Problem:    MS-Windows: crash when using :echoconsole.
Solution:   Do not write a NUL when it's already there.

3 years agopatch 8.2.2786: Vim9: memory leak when using :s with expression v8.2.2786
Bram Moolenaar [Mon, 19 Apr 2021 19:06:31 +0000 (21:06 +0200)]
patch 8.2.2786: Vim9: memory leak when using :s with expression

Problem:    Vim9: memory leak when using :s with expression.
Solution:   Clean up the instruction list.

3 years agopatch 8.2.2785: Vim9: cannot redirect to local variable v8.2.2785
Bram Moolenaar [Mon, 19 Apr 2021 18:50:03 +0000 (20:50 +0200)]
patch 8.2.2785: Vim9: cannot redirect to local variable

Problem:    Vim9: cannot redirect to local variable.
Solution:   Compile :redir when redirecting to a variable.

3 years agopatch 8.2.2784: Vim9: cannot use \=expr in :substitute v8.2.2784
Bram Moolenaar [Mon, 19 Apr 2021 14:48:48 +0000 (16:48 +0200)]
patch 8.2.2784: Vim9: cannot use \=expr in :substitute

Problem:    Vim9: cannot use \=expr in :substitute.
Solution:   Compile the expression into instructions and execute them when
            invoked.

3 years agopatch 8.2.2783: duplicate code for setting byte in blob, blob test may fail v8.2.2783
Bram Moolenaar [Sun, 18 Apr 2021 14:08:52 +0000 (16:08 +0200)]
patch 8.2.2783: duplicate code for setting byte in blob, blob test may fail

Problem:    Duplicate code for setting byte in blob, blob test may fail.
Solution:   Call blob_set_append().  Test sort failure with "N".

3 years agopatch 8.2.2782: Vim9: blob operations not fully tested v8.2.2782
Bram Moolenaar [Sun, 18 Apr 2021 13:48:04 +0000 (15:48 +0200)]
patch 8.2.2782: Vim9: blob operations not fully tested

Problem:    Vim9: blob operations not fully tested.
Solution:   Make more blob tests run in Vim9 script.  Fix filter().  Make
            insert() give an error for a null blob, like add().

3 years agopatch 8.2.2781: add() silently skips when adding to null list or blob v8.2.2781
Bram Moolenaar [Sun, 18 Apr 2021 12:12:31 +0000 (14:12 +0200)]
patch 8.2.2781: add() silently skips when adding to null list or blob

Problem:    Add() silently skips when adding to null list or blob.
Solution:   Give an error in Vim9 script.  Allocate blob when it is NULL like
            with list and dict.

3 years agopatch 8.2.2780: Vim9: for loop over blob doesn't work v8.2.2780
Bram Moolenaar [Sun, 18 Apr 2021 11:15:58 +0000 (13:15 +0200)]
patch 8.2.2780: Vim9: for loop over blob doesn't work

Problem:    Vim9: for loop over blob doesn't work.
Solution:   Make it work.

3 years agopatch 8.2.2779: memory access error in remove() for blob v8.2.2779
Bram Moolenaar [Sat, 17 Apr 2021 19:22:49 +0000 (21:22 +0200)]
patch 8.2.2779: memory access error in remove() for blob

Problem:    Memory access error in remove() for blob.
Solution:   Adjust length for memmove().

3 years agopatch 8.2.2778: problem restoring 'packpath' in session v8.2.2778
Bram Moolenaar [Sat, 17 Apr 2021 19:04:34 +0000 (21:04 +0200)]
patch 8.2.2778: problem restoring 'packpath' in session

Problem:    Problem restoring 'packpath' in session.
Solution:   Let "skiprtp" also apply to 'packpath'.

3 years agopatch 8.2.2777: Vim9: blob operations not tested in all ways v8.2.2777
Bram Moolenaar [Sat, 17 Apr 2021 18:44:56 +0000 (20:44 +0200)]
patch 8.2.2777: Vim9: blob operations not tested in all ways

Problem:    Vim9: blob operations not tested in all ways.
Solution:   Run tests with CheckLegacyAndVim9Success().  Make blob assign with
            index work.

3 years agopatch 8.2.2776: :mksession uses current value of 'splitbelow' and 'splitright' v8.2.2776
Bram Moolenaar [Sat, 17 Apr 2021 16:38:54 +0000 (18:38 +0200)]
patch 8.2.2776: :mksession uses current value of 'splitbelow' and 'splitright'

Problem:    :mksession uses current value of 'splitbelow' and 'splitright'
            even though "options" is not in 'sessionoptions'. (Maxim Kim)
Solution:   Save and restore the values, instead of setting to the current
            value. (closes #8119)

3 years agopatch 8.2.2775: Vim9: wrong line number used for some commands v8.2.2775
Bram Moolenaar [Sat, 17 Apr 2021 15:59:19 +0000 (17:59 +0200)]
patch 8.2.2775: Vim9: wrong line number used for some commands

Problem:    Vim9: wrong line number used for some commands.
Solution:   For :exe, :echo and the like use the line number of the start of
            the command.  When calling a function set the line number in the
            script context.

3 years agopatch 8.2.2774: Vim9: cannot import an existing name even when using "as" v8.2.2774
Bram Moolenaar [Sat, 17 Apr 2021 14:38:50 +0000 (16:38 +0200)]
patch 8.2.2774: Vim9: cannot import an existing name even when using "as"

Problem:    Vim9: cannot import an existing name even when using "as".
Solution:   Do not check for an existing name when using "as". (closes #8113)

3 years agoUpdate runtime files.
Bram Moolenaar [Sat, 17 Apr 2021 14:31:09 +0000 (16:31 +0200)]
Update runtime files.

3 years agopatch 8.2.2773: PSL filetype not recognized v8.2.2773
Bram Moolenaar [Sat, 17 Apr 2021 12:06:39 +0000 (14:06 +0200)]
patch 8.2.2773: PSL filetype not recognized

Problem:    PSL filetype not recognized.
Solution:   Add a filetype pattern. (Daniel Kho, closes #8117)

3 years agopatch 8.2.2772: problems when restoring 'runtimepath' from a session file v8.2.2772
Bram Moolenaar [Fri, 16 Apr 2021 17:58:22 +0000 (19:58 +0200)]
patch 8.2.2772: problems when restoring 'runtimepath' from a session file

Problem:    Problems when restoring 'runtimepath' from a session file.
Solution:   Add the "skiprtp" item in 'sessionoptions'.

3 years agopatch 8.2.2771: Vim9: assignment not recognized if declaration was skipped v8.2.2771
Bram Moolenaar [Thu, 15 Apr 2021 20:13:39 +0000 (22:13 +0200)]
patch 8.2.2771: Vim9: assignment not recognized if declaration was skipped

Problem:    Vim9: assignment not recognized if declaration was skipped.
Solution:   Also recognized an assignment if the variable does not exist.
            (closes #8108)

3 years agopatch 8.2.2770: Vim9: type of loop variable is not used v8.2.2770
Bram Moolenaar [Thu, 15 Apr 2021 19:48:32 +0000 (21:48 +0200)]
patch 8.2.2770: Vim9: type of loop variable is not used

Problem:    Vim9: type of loop variable is not used.
Solution:   Parse and check the variable type. (closes #8107)

3 years agopatch 8.2.2769: Modula-3 config files are not recognized v8.2.2769
Bram Moolenaar [Thu, 15 Apr 2021 12:29:17 +0000 (14:29 +0200)]
patch 8.2.2769: Modula-3 config files are not recognized

Problem:    Modula-3 config files are not recognized.
Solution:   Add filetype patterns. (Doug Kearns)

3 years agopatch 8.2.2768: Vim9: memory leak with blob range error v8.2.2768
Bram Moolenaar [Thu, 15 Apr 2021 11:42:21 +0000 (13:42 +0200)]
patch 8.2.2768: Vim9: memory leak with blob range error

Problem:    Vim9: memory leak with blob range error.
Solution:   Jump to end instead of returning.

3 years agopatch 8.2.2767: compiler warning for unused argument v8.2.2767
Bram Moolenaar [Wed, 14 Apr 2021 19:30:06 +0000 (21:30 +0200)]
patch 8.2.2767: compiler warning for unused argument

Problem:    Compiler warning for unused argument.
Solution:   Remove the argument.

3 years agopatch 8.2.2766: test failure v8.2.2766
Bram Moolenaar [Wed, 14 Apr 2021 18:54:07 +0000 (20:54 +0200)]
patch 8.2.2766: test failure

Problem:    Test failure.
Solution:   Add change to Vim9 compilation error message.

3 years agopatch 8.2.2765: Vim9: not all blob operations work v8.2.2765
Bram Moolenaar [Wed, 14 Apr 2021 18:35:23 +0000 (20:35 +0200)]
patch 8.2.2765: Vim9: not all blob operations work

Problem:    Vim9: not all blob operations work.
Solution:   Run more tests also with Vim9 script and :def functions.  Fix what
            doesn't work.

3 years agopatch 8.2.2764: memory leak when default function argument is allocated v8.2.2764
Bram Moolenaar [Wed, 14 Apr 2021 15:06:43 +0000 (17:06 +0200)]
patch 8.2.2764: memory leak when default function argument is allocated

Problem:    Memory leak when default function argument is allocated.
Solution:   Free the expression result.

3 years agopatch 8.2.2763: Vim9: cannot use type in for loop unpack at script level v8.2.2763
Bram Moolenaar [Wed, 14 Apr 2021 11:30:46 +0000 (13:30 +0200)]
patch 8.2.2763: Vim9: cannot use type in for loop unpack at script level

Problem:    Vim9: cannot use type in for loop unpack at script level.
Solution:   Advance over the type name.

3 years agopatch 8.2.2762: Vim9: function line truncated when compiling v8.2.2762
Bram Moolenaar [Wed, 14 Apr 2021 10:40:00 +0000 (12:40 +0200)]
patch 8.2.2762: Vim9: function line truncated when compiling

Problem:    Vim9: function line truncated when compiling.
Solution:   Copy the line before processing it. (closes #8101)

3 years agopatch 8.2.2761: using "syn include" does not work properly v8.2.2761
Bram Moolenaar [Wed, 14 Apr 2021 09:15:08 +0000 (11:15 +0200)]
patch 8.2.2761: using "syn include" does not work properly

Problem:    Using "syn include" does not work properly.
Solution:   Don't add current_syn_inc_tag to topgrp. (Jaehwang Jerry Jung,
            closes #8104)

3 years agopatch 8.2.2760: Vim9: no error for changing a for loop variable v8.2.2760
Bram Moolenaar [Tue, 13 Apr 2021 19:48:03 +0000 (21:48 +0200)]
patch 8.2.2760: Vim9: no error for changing a for loop variable

Problem:    Vim9: no error for changing a for loop variable.
Solution:   Make the loop variable read-only. (issue #8102)

3 years agopatch 8.2.2759: Vim9: for loop infers type of loop variable v8.2.2759
Bram Moolenaar [Tue, 13 Apr 2021 18:53:13 +0000 (20:53 +0200)]
patch 8.2.2759: Vim9: for loop infers type of loop variable

Problem:    Vim9: for loop infers type of loop variable.
Solution:   Do not get the member type. (closes #8102)

3 years agopatch 8.2.2758: Vim9: wrong line number for autoload function with wrong name v8.2.2758
Bram Moolenaar [Mon, 12 Apr 2021 20:02:36 +0000 (22:02 +0200)]
patch 8.2.2758: Vim9: wrong line number for autoload function with wrong name

Problem:    Vim9: wrong line number for autoload function with wrong name.
Solution:   Set and restore SOURCING_LNUM. (closes #8100)

3 years agopatch 8.2.2757: Vim9: blob tests for legacy and Vim9 script are separate v8.2.2757
Bram Moolenaar [Mon, 12 Apr 2021 19:21:02 +0000 (21:21 +0200)]
patch 8.2.2757: Vim9: blob tests for legacy and Vim9 script are separate

Problem:    Vim9: blob tests for legacy and Vim9 script are separate.
Solution:   Add CheckLegacyAndVim9Success().  Make blob index assign work.

3 years agopatch 8.2.2756: Vim9: blob index and slice not implemented yet v8.2.2756
Bram Moolenaar [Sun, 11 Apr 2021 18:26:34 +0000 (20:26 +0200)]
patch 8.2.2756: Vim9: blob index and slice not implemented yet

Problem:    Vim9: blob index and slice not implemented yet.
Solution:   Implement blob index and slice.

3 years agopatch 8.2.2755: Vim9: no error for using a number in a condition v8.2.2755
Bram Moolenaar [Sun, 11 Apr 2021 16:24:46 +0000 (18:24 +0200)]
patch 8.2.2755: Vim9: no error for using a number in a condition

Problem:    Vim9: no error for using a number in a condition.
Solution:   Also use ISN_COND2BOOL if the type is t_number_bool.
            (closes #7644)

3 years agopatch 8.2.2754: :sleep! does not always hide the cursor v8.2.2754
Bram Moolenaar [Sun, 11 Apr 2021 11:29:18 +0000 (13:29 +0200)]
patch 8.2.2754: :sleep! does not always hide the cursor

Problem:    :sleep! does not always hide the cursor.
Solution:   Add the cursor_is_asleep flag. (Jeremy Lerner, closes #8097,
            closes #7998)

3 years agopatch 8.2.2753: Vim9: cannot ignore an item in assignment unpack v8.2.2753
Bram Moolenaar [Sat, 10 Apr 2021 20:35:43 +0000 (22:35 +0200)]
patch 8.2.2753: Vim9: cannot ignore an item in assignment unpack

Problem:    Vim9: cannot ignore an item in assignment unpack.
Solution:   Allow using an underscore.

3 years agopatch 8.2.2752 v8.2.2752
Bram Moolenaar [Sat, 10 Apr 2021 19:46:05 +0000 (21:46 +0200)]
patch 8.2.2752