]> granicus.if.org Git - vim/log
vim
2 years agopatch 8.2.4695: JSON encoding could be faster v8.2.4695
LemonBoy [Tue, 5 Apr 2022 14:07:32 +0000 (15:07 +0100)]
patch 8.2.4695: JSON encoding could be faster

Problem:    JSON encoding could be faster.
Solution:   Optimize encoding JSON strings. (closes #10086)

2 years agopatch 8.2.4694: avoidance of #elif causes more preproc nesting v8.2.4694
ichizok [Tue, 5 Apr 2022 13:18:44 +0000 (14:18 +0100)]
patch 8.2.4694: avoidance of #elif causes more preproc nesting

Problem:    Avoidance of #elif causes more preproc nesting.
Solution:   Use #elif where it is useful. (Ozaki Kiichi, closes #10081)

2 years agopatch 8.2.4693: new regexp does not accept pattern "\%>0v" v8.2.4693
Bram Moolenaar [Tue, 5 Apr 2022 13:00:32 +0000 (14:00 +0100)]
patch 8.2.4693: new regexp does not accept pattern "\%>0v"

Problem:    new regexp does not accept pattern "\%>0v".
Solution:   Do accept digit zero.

2 years agopatch 8.2.4692: no test for what 8.2.4691 fixes v8.2.4692
zeertzjq [Tue, 5 Apr 2022 12:17:01 +0000 (13:17 +0100)]
patch 8.2.4692: no test for what 8.2.4691 fixes

Problem:    No test for what 8.2.4691 fixes.
Solution:   Add a test.  Use a more generic sotlution. (closes #10090)

2 years agopatch 8.2.4691: solution for <Cmd> in a mapping causes trouble v8.2.4691
Bram Moolenaar [Mon, 4 Apr 2022 21:09:30 +0000 (22:09 +0100)]
patch 8.2.4691: solution for <Cmd> in a mapping causes trouble

Problem:    Solution for <Cmd> in a mapping causes trouble.
Solution:   Use another solution: put back CTRL-O after reading the <Cmd>
            sequence.

2 years agopatch 8.2.4690: channel tests fail on MS-Windows v8.2.4690
LemonBoy [Mon, 4 Apr 2022 20:13:35 +0000 (21:13 +0100)]
patch 8.2.4690: channel tests fail on MS-Windows

Problem:    Channel tests fail on MS-Windows.
Solution:   Check if the AF_UNIX attribute exists. (closes #10083)

2 years agopatch 8.2.4689: using <Cmd> in a mapping does not work for mouse keys v8.2.4689
Bram Moolenaar [Mon, 4 Apr 2022 20:03:52 +0000 (21:03 +0100)]
patch 8.2.4689: using <Cmd> in a mapping does not work for mouse keys

Problem:    Using <Cmd> in a mapping does not work for mouse keys in Insert
            mode. (Sergey Vlasov)
Solution:   When reading the <Cmd> argument do not use the stuff buffer.
            (closes #10080)

2 years agopatch 8.2.4688: new regexp engine does not give an error for "\%v" v8.2.4688
Bram Moolenaar [Mon, 4 Apr 2022 17:32:32 +0000 (18:32 +0100)]
patch 8.2.4688: new regexp engine does not give an error for "\%v"

Problem:    New regexp engine does not give an error for "\%v".
Solution:   Check for a value argument. (issue #10079)

2 years agopatch 8.2.4687: "vimgrep /\%v/ *" may cause a crash v8.2.4687
Bram Moolenaar [Mon, 4 Apr 2022 17:14:34 +0000 (18:14 +0100)]
patch 8.2.4687: "vimgrep /\%v/ *" may cause a crash

Problem:    "vimgrep /\%v/ *" may cause a crash.
Solution:   When compiling the pattern with the old engine fails, restore the
            regprog of the new engine instead of leaving it NULL.
            (closes #10079)

2 years agopatch 8.2.4686: configure doesn't find the Motif library with Cygwin v8.2.4686
Kelvin Lee [Mon, 4 Apr 2022 16:20:01 +0000 (17:20 +0100)]
patch 8.2.4686: configure doesn't find the Motif library with Cygwin

Problem:    Configure doesn't find the Motif library with Cygwin.
Solution:   Check for libXm.dll.a. (Kelvin Lee, closes #10077)

2 years agopatch 8.2.4685: when a swap file is found for a popup there is no dialog v8.2.4685
Bram Moolenaar [Mon, 4 Apr 2022 15:57:21 +0000 (16:57 +0100)]
patch 8.2.4685: when a swap file is found for a popup there is no dialog

Problem:    When a swap file is found for a popup there is no dialog and the
            buffer is loaded anyway.
Solution:   Silently load the buffer read-only. (closes #10073)

2 years agopatch 8.2.4684: cannot open a channel on a Unix domain socket v8.2.4684
LemonBoy [Mon, 4 Apr 2022 14:46:58 +0000 (15:46 +0100)]
patch 8.2.4684: cannot open a channel on a Unix domain socket

Problem:    Cannot open a channel on a Unix domain socket.
Solution:   Add Unix domain socket support. (closes #10062)

2 years agopatch 8.2.4683: verbose check with dict_find() to see if a key is present v8.2.4683
Yegappan Lakshmanan [Mon, 4 Apr 2022 14:16:54 +0000 (15:16 +0100)]
patch 8.2.4683: verbose check with dict_find() to see if a key is present

Problem:    Verbose check with dict_find() to see if a key is present.
Solution:   Add dict_has_key(). (Yegappan Lakshmanan, closes #10074)

2 years agopatch 8.2.4682: Vim9: can use :unlockvar for const variable v8.2.4682
Bram Moolenaar [Mon, 4 Apr 2022 13:58:06 +0000 (14:58 +0100)]
patch 8.2.4682: Vim9: can use :unlockvar for const variable

Problem:    Vim9: can use :unlockvar for const variable. (Ernie Rael)
Solution:   Check whether the variable is a const.

2 years agopatch 8.2.4681: build fails with a combination of features v8.2.4681
Bram Moolenaar [Sun, 3 Apr 2022 20:57:26 +0000 (21:57 +0100)]
patch 8.2.4681: build fails with a combination of features

Problem:    Build fails with a combination of features.
Solution:   Remove #ifdef for alloc_clear_id(). (John Marriott)

2 years agopatch 8.2.4680: build failure without +postscript v8.2.4680
Bram Moolenaar [Sun, 3 Apr 2022 20:52:51 +0000 (21:52 +0100)]
patch 8.2.4680: build failure without +postscript

Problem:    Build failure without +postscript.
Solution:   Use another error message.

2 years agopatch 8.2.4679: cannot have expandcmd() give an error message for mistakes v8.2.4679
Yegappan Lakshmanan [Sun, 3 Apr 2022 20:30:32 +0000 (21:30 +0100)]
patch 8.2.4679: cannot have expandcmd() give an error message for mistakes

Problem:    Cannot have expandcmd() give an error message for mistakes.
Solution:   Add an optional argument to give errors. Fix memory leak when
            expanding files fails. (Yegappan Lakshmanan, closes #10071)

2 years agopatch 8.2.4678: Vim9: not all code is tested v8.2.4678
Bram Moolenaar [Sun, 3 Apr 2022 20:11:34 +0000 (21:11 +0100)]
patch 8.2.4678: Vim9: not all code is tested

Problem:    Vim9: not all code is tested.
Solution:   Add a few more tests.

2 years agopatch 8.2.4677: the Athena GUI support is outdated v8.2.4677
Bram Moolenaar [Sun, 3 Apr 2022 17:02:37 +0000 (18:02 +0100)]
patch 8.2.4677: the Athena GUI support is outdated

Problem:    The Athena GUI support is outdated.
Solution:   Remove the Athena GUI code.

2 years agopatch 8.2.4676: test fails with different error v8.2.4676
Bram Moolenaar [Sun, 3 Apr 2022 15:59:02 +0000 (16:59 +0100)]
patch 8.2.4676: test fails with different error

Problem:    Test fails with different error.
Solution:   Add argument for :elseif.

2 years agopatch 8.2.4675: no error for missing expression after :elseif v8.2.4675
Bram Moolenaar [Sun, 3 Apr 2022 15:13:07 +0000 (16:13 +0100)]
patch 8.2.4675: no error for missing expression after :elseif

Problem:    No error for missing expression after :elseif. (Ernie Rael)
Solution:   Check for missing expression. (closes #10068)

2 years agopatch 8.2.4674: cannot force getting MouseMove events v8.2.4674
Ernie Rael [Sun, 3 Apr 2022 14:47:28 +0000 (15:47 +0100)]
patch 8.2.4674: cannot force getting MouseMove events

Problem:    Cannot force getting MouseMove events.
Solution:   Add the 'mousemoveevent' option with implementaiton for the GUI.
            (Ernie Rael, closes #10044)

2 years agopatch 8.2.4673: redrawing a split window is slow when using CTRL-F and CTRL-B v8.2.4673
Bram Moolenaar [Sun, 3 Apr 2022 12:23:22 +0000 (13:23 +0100)]
patch 8.2.4673: redrawing a split window is slow when using CTRL-F and CTRL-B

Problem:    Redrawing a vertically split window is slow when using CTRL-F and
            CTRL-B.
Solution:   When deciding on USE_REDRAW bail out if scrolling more than three
            lines. (issue #8002)

2 years agopatch 8.2.4672: using :normal with Ex mode may make :substitute hang v8.2.4672
Bram Moolenaar [Sun, 3 Apr 2022 11:59:34 +0000 (12:59 +0100)]
patch 8.2.4672: using :normal with Ex mode may make :substitute hang

Problem:    Using :normal with Ex mode may make :substitute hang.
Solution:   When getting an empty line behave like 'q' was typed.
            (closes #10070)

2 years agopatch 8.2.4671: 'wildignorecase' is sometimes not used for glob() v8.2.4671
LemonBoy [Sun, 3 Apr 2022 10:58:31 +0000 (11:58 +0100)]
patch 8.2.4671: 'wildignorecase' is sometimes not used for glob()

Problem:    'wildignorecase' is sometimes not used for glob().
Solution:   Also use 'wildignorecase' when there are no wildcards.
            (closes #10066, closes #8350)

2 years agopatch 8.2.4670: memory allocation failures for new tab page not tested v8.2.4670
Yegappan Lakshmanan [Sun, 3 Apr 2022 10:22:38 +0000 (11:22 +0100)]
patch 8.2.4670: memory allocation failures for new tab page not tested

Problem:    Memory allocation failures for new tab page not tested.
Solution:   Add tests with failing memory allocation. (Yegappan Lakshmanan,
            closes #10067)

2 years agopatch 8.2.4669: in compiled code len('string') is not inlined v8.2.4669
LemonBoy [Sat, 2 Apr 2022 20:59:06 +0000 (21:59 +0100)]
patch 8.2.4669: in compiled code len('string') is not inlined

Problem:    In compiled code len('string') is not inlined.
Solution:   Compute the length at compile time if possible. (closes #10065)

2 years agopatch 8.2.4668: buffer allocation failures insufficiently tested v8.2.4668
Yegappan Lakshmanan [Sat, 2 Apr 2022 20:46:19 +0000 (21:46 +0100)]
patch 8.2.4668: buffer allocation failures insufficiently tested

Problem:    Buffer allocation failures insufficiently tested.
Solution:   Add tests for memory allocation failures. (Yegappan Lakshmanan,
            closes #10064)

2 years agopatch 8.2.4667: expandcmd() fails on an error v8.2.4667
Yegappan Lakshmanan [Sat, 2 Apr 2022 20:12:21 +0000 (21:12 +0100)]
patch 8.2.4667: expandcmd() fails on an error

Problem:    expandcmd() fails on an error.
Solution:   On failure return the command unmodified. (yegappan Lakshmanan,
            closes #10063)

2 years agopatch 8.2.4666: Vim9: assignment not recognized in skipped block v8.2.4666
Bram Moolenaar [Sat, 2 Apr 2022 18:43:57 +0000 (19:43 +0100)]
patch 8.2.4666: Vim9: assignment not recognized in skipped block

Problem:    Vim9: assignment not recognized in skipped block.
Solution:   When skipping assume identifier exists. (closes #10059)

2 years agopatch 8.2.4665: popup with "minwidth" and scrollbar not updated properly v8.2.4665
Bram Moolenaar [Sat, 2 Apr 2022 14:32:16 +0000 (15:32 +0100)]
patch 8.2.4665: popup with "minwidth" and scrollbar not updated properly

Problem:    Popup with "minwidth" and scrollbar not updated properly.
Solution:   Adjust the computation if the window width. (closes #10061)

2 years agopatch 8.2.4664: Elvish files are not recognized v8.2.4664
Bruno Roque [Sat, 2 Apr 2022 09:48:24 +0000 (10:48 +0100)]
patch 8.2.4664: Elvish files are not recognized

Problem:    Elvish files are not recognized.
Solution:   Recognize .elv files. (Bruno Roque, closes #10058)

2 years agopatch 8.2.4663: occasional crash when running the GUI tests v8.2.4663
Bram Moolenaar [Fri, 1 Apr 2022 18:44:47 +0000 (19:44 +0100)]
patch 8.2.4663: occasional crash when running the GUI tests

Problem:    Occasional crash when running the GUI tests.
Solution:   Check that the line index is not too high. (closes #8681)

2 years agopatch 8.2.4662: no error for using out of range list index v8.2.4662
Bram Moolenaar [Fri, 1 Apr 2022 14:26:58 +0000 (15:26 +0100)]
patch 8.2.4662: no error for using out of range list index

Problem:    No error for using out of range list index.
Solution:   Check list index at script level like in compiled function.
            (closes #10051)

2 years agopatch 8.2.4661: Coverity warning for using uninitialized variable v8.2.4661
Bram Moolenaar [Fri, 1 Apr 2022 12:23:47 +0000 (13:23 +0100)]
patch 8.2.4661: Coverity warning for using uninitialized variable

Problem:    Coverity warning for using uninitialized variable.
Solution:   Initialize variable to NULL.

2 years agopatch 8.2.4660: cursorcolumn is sometimes not correct v8.2.4660
Bram Moolenaar [Fri, 1 Apr 2022 11:06:31 +0000 (12:06 +0100)]
patch 8.2.4660: cursorcolumn is sometimes not correct

Problem:    Cursorcolumn is sometimes not correct.
Solution:   Recompute the cursor column when entering Insert mode and the
            cursor is on a character wider than a screen cell.

2 years agopatch 8.2.4659: invalid memory access when using printable function name v8.2.4659
Bram Moolenaar [Thu, 31 Mar 2022 20:40:33 +0000 (21:40 +0100)]
patch 8.2.4659: invalid memory access when using printable function name

Problem:    Invalid memory access when using printable function name.
Solution:   Adjust copied name length.

2 years agopatch 8.2.4658: org-mode files are not recognized v8.2.4658
ranjithshegde [Thu, 31 Mar 2022 19:24:35 +0000 (20:24 +0100)]
patch 8.2.4658: org-mode files are not recognized

Problem:    Org-mode files are not recognized.
Solution:   Add patterns to recognize "org" files. (closes #10046)

2 years agopatch 8.2.4657: errors for functions are sometimes hard to read v8.2.4657
Bram Moolenaar [Thu, 31 Mar 2022 19:02:56 +0000 (20:02 +0100)]
patch 8.2.4657: errors for functions are sometimes hard to read

Problem:    Errors for functions are sometimes hard to read.
Solution:   Use printable_func_name() in more places.

2 years agopatch 8.2.4656: Vim9: can't use item from "import autoload" with autoload dir v8.2.4656
Bram Moolenaar [Thu, 31 Mar 2022 15:18:23 +0000 (16:18 +0100)]
patch 8.2.4656: Vim9: can't use item from "import autoload" with autoload dir

Problem:    Vim9: can't use items from "import autoload" with autoload
            directory name.
Solution:   Let sn_autoload_prefix overrule sn_import_autoload.
            (closes #10054)

2 years agopatch 8.2.4655: cmdline completion popup menu positioned wrong v8.2.4655
Yegappan Lakshmanan [Thu, 31 Mar 2022 11:34:15 +0000 (12:34 +0100)]
patch 8.2.4655: cmdline completion popup menu positioned wrong

Problem:    Command line completion popup menu positioned wrong when using a
            terminal window.
Solution:   Position the popup menu differently when editing the command line.
            (Yegappan Lakshmanan, closes #10050, closes #10035)

2 years agopatch 8.2.4654: missing changes for import check v8.2.4654
Bram Moolenaar [Thu, 31 Mar 2022 10:51:21 +0000 (11:51 +0100)]
patch 8.2.4654: missing changes for import check

Problem:    Missing changes for import check.
Solution:   Add missing changes.

2 years agopatch 8.2.4653: "import autoload" does not check the file name v8.2.4653
Bram Moolenaar [Thu, 31 Mar 2022 10:37:57 +0000 (11:37 +0100)]
patch 8.2.4653: "import autoload" does not check the file name

Problem:    "import autoload" does not check the file name.
Solution:   Give an error if the file is not readable. (closes #10049)

2 years agopatch 8.2.4652: leaking memory if assignment fails v8.2.4652
Bram Moolenaar [Thu, 31 Mar 2022 09:13:47 +0000 (10:13 +0100)]
patch 8.2.4652: leaking memory if assignment fails

Problem:    Leaking memory if assignment fails.
Solution:   Clear assigned value on failure.

2 years agopatch 8.2.4651: test fails because path differs v8.2.4651
Bram Moolenaar [Wed, 30 Mar 2022 20:57:50 +0000 (21:57 +0100)]
patch 8.2.4651: test fails because path differs

Problem:    Test fails because path differs.
Solution:   Only compare the tail of the path.

2 years agopatch 8.2.4650: "import autoload" only works with using 'runtimepath' v8.2.4650
Bram Moolenaar [Wed, 30 Mar 2022 20:12:27 +0000 (21:12 +0100)]
patch 8.2.4650: "import autoload" only works with using 'runtimepath'

Problem:    "import autoload" only works with using 'runtimepath'.
Solution:   Also support a relative and absolute file name.

2 years agopatch 8.2.4649: various formatting problems v8.2.4649
Bram Moolenaar [Wed, 30 Mar 2022 09:57:45 +0000 (10:57 +0100)]
patch 8.2.4649: various formatting problems

Problem:    Various formatting problems.
Solution:   Improve the code formatting.

2 years agoUpdate runtime files
Bram Moolenaar [Wed, 30 Mar 2022 09:51:39 +0000 (10:51 +0100)]
Update runtime files

2 years agopatch 8.2.4648: handling LSP messages is a bit slow v8.2.4648
Yegappan Lakshmanan [Wed, 30 Mar 2022 09:16:05 +0000 (10:16 +0100)]
patch 8.2.4648: handling LSP messages is a bit slow

Problem:    Handling LSP messages is a bit slow.
Solution:   Included support for LSP messages. (Yegappan Lakshmanan,
            closes #10025)

2 years agopatch 8.2.4647: "source" can read past end of copied line v8.2.4647
Bram Moolenaar [Tue, 29 Mar 2022 18:52:12 +0000 (19:52 +0100)]
patch 8.2.4647: "source" can read past end of copied line

Problem:    "source" can read past end of copied line.
Solution:   Add a terminating NUL.

2 years agopatch 8.2.4646: using buffer line after it has been freed v8.2.4646
Bram Moolenaar [Tue, 29 Mar 2022 12:24:58 +0000 (13:24 +0100)]
patch 8.2.4646: using buffer line after it has been freed

Problem:    Using buffer line after it has been freed in old regexp engine.
Solution:   After getting mark get the line again.

2 years agopatch 8.2.4645: 'shortmess' changed when session does not store options v8.2.4645
James Cherti [Tue, 29 Mar 2022 11:02:57 +0000 (12:02 +0100)]
patch 8.2.4645: 'shortmess' changed when session does not store options

Problem:    'shortmess' changed when session does not store options.
Solution:   Save and restore 'shortmess' if needed. (James Charti,
            closes #10037)

2 years agopatch 8.2.4644: redrawing too often when 'relativenumber' is set v8.2.4644
Lewis Russell [Tue, 29 Mar 2022 10:38:17 +0000 (11:38 +0100)]
patch 8.2.4644: redrawing too often when 'relativenumber' is set

Problem:    Redrawing too often when 'relativenumber' is set.
Solution:   Only redraw when the cursor line changed. (Lewis Russell,
            closes #10040)

2 years agopatch 8.2.4643: Vim9: variable may be locked unintentionally v8.2.4643
Bram Moolenaar [Mon, 28 Mar 2022 17:16:52 +0000 (18:16 +0100)]
patch 8.2.4643: Vim9: variable may be locked unintentionally

Problem:    Vim9: variable may be locked unintentionally.
Solution:   Clear "v_lock". (closes #10036)

2 years agopatch 8.2.4642: Vim9: in :def function script var cannot be null v8.2.4642
Bram Moolenaar [Mon, 28 Mar 2022 14:22:35 +0000 (15:22 +0100)]
patch 8.2.4642: Vim9: in :def function script var cannot be null

Problem:    Vim9: in :def function script var cannot be null.
Solution:   Only initialize a script variable when not set to a null value.
            (closes #10034)

2 years agopatch 8.2.4641: may mark the wrong window for redrawing v8.2.4641
Bram Moolenaar [Mon, 28 Mar 2022 11:41:19 +0000 (12:41 +0100)]
patch 8.2.4641: may mark the wrong window for redrawing

Problem:    May mark the wrong window for redrawing.
Solution:   Use redraw_win_later(). (closes #10032)

2 years agopatch 8.2.4640: some boolean options use "long" instead of "int" v8.2.4640
James McCoy [Mon, 28 Mar 2022 10:55:12 +0000 (11:55 +0100)]
patch 8.2.4640: some boolean options use "long" instead of "int"

Problem:    Some boolean options use "long" instead of "int".
Solution:   Adjust the type. (James McCoy, closes #10033)

2 years agopatch 8.2.4639: not sufficient parenthesis in preprocessor macros
kylo252 [Sun, 27 Mar 2022 19:05:17 +0000 (20:05 +0100)]
patch 8.2.4639: not sufficient parenthesis in preprocessor macros

Problem:    Not sufficient parenthesis in preprocessor macros.
Solution:   Add more parenthesis. (closes #10031)

2 years agopatch 8.2.4638: superfluous check if a redraw is needed for 'cursorline' v8.2.4638 v8.2.4639
zeertzjq [Sun, 27 Mar 2022 18:26:55 +0000 (19:26 +0100)]
patch 8.2.4638: superfluous check if a redraw is needed for 'cursorline'

Problem:    Superfluous check if a redraw is needed for 'cursorline'.
Solution:   Remove check_redraw_cursorline(). (closes #10030, closes #10029)

2 years agopatch 8.2.4637: warning for using uninitialized variable v8.2.4637
Bram Moolenaar [Sun, 27 Mar 2022 17:11:05 +0000 (18:11 +0100)]
patch 8.2.4637: warning for using uninitialized variable

Problem:    Warning for using uninitialized variable. (Tony Mechelynck)
Solution:   Initialize it.

2 years agopatch 8.2.4636: not using Visual range v8.2.4636
Bram Moolenaar [Sun, 27 Mar 2022 15:56:21 +0000 (16:56 +0100)]
patch 8.2.4636: not using Visual range

Problem:    Not using Visual range.
Solution:   Put the command pointer back to the range.

2 years agopatch 8.2.4635: tests using null list or dict fail v8.2.4635
Bram Moolenaar [Sun, 27 Mar 2022 15:51:04 +0000 (16:51 +0100)]
patch 8.2.4635: tests using null list or dict fail

Problem:    Tests using null list or dict fail.
Solution:   Only use the new rules for Vim9 script.

2 years agopatch 8.2.4634: Vim9: cannot initialize a variable to null_list v8.2.4634
Bram Moolenaar [Sun, 27 Mar 2022 15:29:53 +0000 (16:29 +0100)]
patch 8.2.4634: Vim9: cannot initialize a variable to null_list

Problem:    Vim9: cannot initialize a variable to null_list.
Solution:   Give negative count to NEWLIST. (closes #10027)
            Also fix inconsistencies in comparing with null values.

2 years agopatch 8.2.4633: Visual range does not work before command modifiers v8.2.4633
Bram Moolenaar [Sun, 27 Mar 2022 12:36:50 +0000 (13:36 +0100)]
patch 8.2.4633: Visual range does not work before command modifiers

Problem:    Visual range does not work before command modifiers.
Solution:   Move Visual range to after command modifiers.

2 years agopatch 8.2.4632: using freed memory in flatten() v8.2.4632
Bram Moolenaar [Sat, 26 Mar 2022 16:42:23 +0000 (16:42 +0000)]
patch 8.2.4632: using freed memory in flatten()

Problem:    Using freed memory in flatten().
Solution:   Clear typval after recursing into list.

2 years agopatch 8.2.4631: crash when switching window in BufWipeout autocommand v8.2.4631
Bram Moolenaar [Sat, 26 Mar 2022 16:28:06 +0000 (16:28 +0000)]
patch 8.2.4631: crash when switching window in BufWipeout autocommand

Problem:    Crash when switching window in BufWipeout autocommand.
Solution:   Put any buffer in the window to avoid it being NULL.
            (closes #10024)

2 years agopatch 8.2.4630: 'cursorline' not always updated with 'culopt' is "screenline" v8.2.4630
Bram Moolenaar [Sat, 26 Mar 2022 13:28:14 +0000 (13:28 +0000)]
patch 8.2.4630: 'cursorline' not always updated with 'culopt' is "screenline"

Problem:    'cursorline' not always updated with 'cursorlineopt' is
            "screenline".
Solution:   Call check_redraw_cursorline() more often. (closes #10013)

2 years agopatch 8.2.4629: flattennew() makes a deep copy unnecessarily v8.2.4629
Bram Moolenaar [Sat, 26 Mar 2022 10:50:11 +0000 (10:50 +0000)]
patch 8.2.4629: flattennew() makes a deep copy unnecessarily

Problem:    flattennew() makes a deep copy unnecessarily.
Solution:   Use a shallow copy. (issue #10012)

2 years agopatch 8.2.4628: not enough testing for 2/3 letter substitute commands v8.2.4628
Yegappan Lakshmanan [Fri, 25 Mar 2022 21:19:26 +0000 (21:19 +0000)]
patch 8.2.4628: not enough testing for 2/3 letter substitute commands

Problem:    Not enough testing for 2/3 letter substitute commands.
Solution:   Add more tests. (Yegappan Lakshmanan, closes #10019)

2 years agopatch 8.2.4627: flatten() does not use maxdepth correctly v8.2.4627
Bram Moolenaar [Fri, 25 Mar 2022 19:50:57 +0000 (19:50 +0000)]
patch 8.2.4627: flatten() does not use maxdepth correctly

Problem:    flatten() does not use maxdepth correctly.
Solution:   Use a recursive implementation. (closes #10020)

2 years agopatch 8.2.4626: Visual area not updated when removing sign in Visual mode v8.2.4626
Bram Moolenaar [Fri, 25 Mar 2022 15:42:27 +0000 (15:42 +0000)]
patch 8.2.4626: Visual area not updated when removing sign in Visual mode

Problem:    Visual area not fully updated when removing sign in Visual mode
            while scrolling.
Solution:   Adjust check for topline. (closes #10017)

2 years agopatch 8.2.4625: old Coverity warning for resource leak v8.2.4625
Bram Moolenaar [Fri, 25 Mar 2022 14:54:18 +0000 (14:54 +0000)]
patch 8.2.4625: old Coverity warning for resource leak

Problem:    Old Coverity warning for resource leak.
Solution:   Call FreeWild() if expanding matches did not fail.

2 years agopatch 8.2.4624: old Coverity warning for resource leak v8.2.4624
Bram Moolenaar [Fri, 25 Mar 2022 14:46:47 +0000 (14:46 +0000)]
patch 8.2.4624: old Coverity warning for resource leak

Problem:    Old Coverity warning for resource leak.
Solution:   Close the file if memory allocation fails.

2 years agopatch 8.2.4623: Coverity warns for using uninitialized field v8.2.4623
Bram Moolenaar [Fri, 25 Mar 2022 14:39:51 +0000 (14:39 +0000)]
patch 8.2.4623: Coverity warns for using uninitialized field

Problem:    Coverity warns for using uninitialized field.
Solution:   Initialize he field to zero.

2 years agopatch 8.2.4622: Vim9: crash with :execute and :finish v8.2.4622
Bram Moolenaar [Fri, 25 Mar 2022 11:16:28 +0000 (11:16 +0000)]
patch 8.2.4622: Vim9: crash with :execute and :finish

Problem:    Vim9: Crash with :execute and :finish. (Sergey Vlasov)
Solution:   Check for NULL. (closes #10011)

2 years agopatch 8.2.4621: crash when using the tabline right-click menu v8.2.4621
Bram Moolenaar [Thu, 24 Mar 2022 18:04:49 +0000 (18:04 +0000)]
patch 8.2.4621: crash when using the tabline right-click menu

Problem:    Crash when using the tabline right-click menu.
Solution:   Use XtPointer for XmNuserData. (closes #10009)

2 years agopatch 8.2.4620: two letter substitute commands don't work v8.2.4620
Bram Moolenaar [Thu, 24 Mar 2022 15:24:45 +0000 (15:24 +0000)]
patch 8.2.4620: two letter substitute commands don't work

Problem:    Two letter substitute commands don't work. (Yegappan Lakshmanan)
Solution:   Invert condition.

2 years agopatch 8.2.4619: mapping is cancelled when mouse moves and popup is visible v8.2.4619
Bram Moolenaar [Thu, 24 Mar 2022 15:15:15 +0000 (15:15 +0000)]
patch 8.2.4619: mapping is cancelled when mouse moves and popup is visible

Problem:    Mapping is cancelled when mouse moves and popup is visible.
Solution:   Only generate mouse moved events when a popup may use them.
            (closes #10004)

2 years agopatch 8.2.4618: cmdline completion does not recognize single letter commands v8.2.4618
Bram Moolenaar [Thu, 24 Mar 2022 13:08:36 +0000 (13:08 +0000)]
patch 8.2.4618: cmdline completion does not recognize single letter commands

Problem:    Command line completion does not recognize single letter commands.
Solution:   Use the condition from find_ex_command().

2 years agopatch 8.2.4617: no completion for :scriptnames v8.2.4617
Yegappan Lakshmanan [Thu, 24 Mar 2022 11:22:13 +0000 (11:22 +0000)]
patch 8.2.4617: no completion for :scriptnames

Problem:    No completion for :scriptnames.
Solution:   Implement :scriptnames completion. (Yegappan Lakshmanan,
            closes #10005)

2 years agopatch 8.2.4616: Vim9: Declarations in a {} block of a user command remain v8.2.4616
Bram Moolenaar [Wed, 23 Mar 2022 21:36:27 +0000 (21:36 +0000)]
patch 8.2.4616: Vim9: Declarations in a {} block of a user command remain

Problem:    Vim9: Declarations in a {} block of a user command do not use Vim9
            rules if defined in a legacy script. (Yegappan Lakshmanan)
Solution:   Pretend the script is Vim9 script.

2 years agopatch 8.2.4615: mapping with escaped bar does not work in :def function v8.2.4615
Bram Moolenaar [Wed, 23 Mar 2022 19:45:01 +0000 (19:45 +0000)]
patch 8.2.4615: mapping with escaped bar does not work in :def function

Problem:    Mapping with escaped bar does not work in :def function. (Sergey
            Vlasov)
Solution:   Do not remove the backslash. (closes #10002)

2 years agopatch 8.2.4614: redrawing too much when 'cursorline' is set v8.2.4614
zeertzjq [Wed, 23 Mar 2022 14:55:23 +0000 (14:55 +0000)]
patch 8.2.4614: redrawing too much when 'cursorline' is set

Problem:    Redrawing too much when 'cursorline' is set and jumping around.
Solution:   Rely on win_update() to redraw the current and previous cursor
            line, do not mark lines as modified. (closes #9996)

2 years agopatch 8.2.4613: return type of swapfile_unchanged() is wrong v8.2.4613
zeertzjq [Wed, 23 Mar 2022 13:54:51 +0000 (13:54 +0000)]
patch 8.2.4613: return type of swapfile_unchanged() is wrong

Problem:    Return type of swapfile_unchanged() is wrong.
Solution:   Use "int". (closes #10000  Yeah!)

2 years agopatch 8.2.4612: Vim9: cannot use a recursive call in a nested function v8.2.4612
Bram Moolenaar [Wed, 23 Mar 2022 11:29:15 +0000 (11:29 +0000)]
patch 8.2.4612: Vim9: cannot use a recursive call in a nested function

Problem:    Vim9: cannot use a recursive call in a nested function. (Sergey
            Vlasov)
Solution:   Define the funcref before compiling the function. (closes #9989)

2 years agopatch 8.2.4611: typos in tests; one lua line not covered by test v8.2.4611
Dominique Pelle [Tue, 22 Mar 2022 21:14:55 +0000 (21:14 +0000)]
patch 8.2.4611: typos in tests; one lua line not covered by test

Problem:    Typos in tests; one lua line not covered by test.
Solution:   Fix typos. Add test case. (Dominique PellĂ©, closes #9994)

2 years agopatch 8.2.4610: some conditions are always true v8.2.4610
Bram Moolenaar [Tue, 22 Mar 2022 20:42:12 +0000 (20:42 +0000)]
patch 8.2.4610: some conditions are always true

Problem:    Some conditions are always true.
Solution:   Remove the useless conditions. (closes #9993)

2 years agopatch 8.2.4609: :unhide does not check for failing to close a window v8.2.4609
Bram Moolenaar [Tue, 22 Mar 2022 18:13:01 +0000 (18:13 +0000)]
patch 8.2.4609: :unhide does not check for failing to close a window

Problem:    :unhide does not check for failing to close a window.
Solution:   When closing a window fails continue with the next one.  Do not
            try closing the autocmd window. (closes #9984)

2 years agopatch 8.2.4608: getcompletion() does not work when 'wildoptions' has "fuzzy" v8.2.4608
Yegappan Lakshmanan [Tue, 22 Mar 2022 16:06:31 +0000 (16:06 +0000)]
patch 8.2.4608: getcompletion() does not work when 'wildoptions' has "fuzzy"

Problem:    getcompletion() does not work properly when 'wildoptions
            contains "fuzzy".
Solution:   Do not use addstar(). (Yegappan Lakshmanan, closes #9992,
            closes #9986)

2 years agopatch 8.2.4607: sourcing buffer lines may lead to errors for conflicts v8.2.4607
Yegappan Lakshmanan [Tue, 22 Mar 2022 12:13:54 +0000 (12:13 +0000)]
patch 8.2.4607: sourcing buffer lines may lead to errors for conflicts

Problem:    Sourcing buffer lines may lead to errors for conflicts.
Solution:   Add the ++clear argument. (Yegappan Lakshmanan, closes #9991)

2 years agopatch 8.2.4606: test fails because of changed error message v8.2.4606
Bram Moolenaar [Mon, 21 Mar 2022 20:40:35 +0000 (20:40 +0000)]
patch 8.2.4606: test fails because of changed error message

Problem:    Test fails because of changed error message.
Solution:   Update the expected error message

2 years agopatch 8.2.4604: error for redefining a script item may be confusing v8.2.4604
Bram Moolenaar [Mon, 21 Mar 2022 19:47:31 +0000 (19:47 +0000)]
patch 8.2.4604: error for redefining a script item may be confusing

Problem:    Error for redefining a script item may be confusing.
Solution:   Put quotes around the name.

2 years agopatch 8.2.4603: sourcing buffer lines is too complicated v8.2.4603
Yegappan Lakshmanan [Mon, 21 Mar 2022 19:45:17 +0000 (19:45 +0000)]
patch 8.2.4603: sourcing buffer lines is too complicated

Problem:    Sourcing buffer lines is too complicated.
Solution:   Simplify the code. Make it possible to source Vim9 script lines.
            (Yegappan Lakshmanan, closes #9974)

2 years agopatch 8.2.4602: Vim9: not enough test coverage for executing :def function v8.2.4602
Bram Moolenaar [Sun, 20 Mar 2022 21:14:15 +0000 (21:14 +0000)]
patch 8.2.4602: Vim9: not enough test coverage for executing :def function

Problem:    Vim9: not enough test coverage for executing :def function.
Solution:   Add a few more tests.  Fix uncovered problem.  Remove dead code.

2 years agopatch 8.2.4601: Vim9: not enough test coverage for executing :def function v8.2.4601
Bram Moolenaar [Sun, 20 Mar 2022 18:51:00 +0000 (18:51 +0000)]
patch 8.2.4601: Vim9: not enough test coverage for executing :def function

Problem:    Vim9: not enough test coverage for executing :def function.
Solution:   Add a few more tests.

2 years agopatch 8.2.4600: Vim9: not enough test coverage for executing :def function v8.2.4600
Bram Moolenaar [Sun, 20 Mar 2022 17:46:06 +0000 (17:46 +0000)]
patch 8.2.4600: Vim9: not enough test coverage for executing :def function

Problem:    Vim9: not enough test coverage for executing :def function.
Solution:   Add a few more tests.  Fix inconsistencies.

2 years agopatch 8.2.4599: GTK: get assertion errors when scrolling a split window v8.2.4599
Bram Moolenaar [Sun, 20 Mar 2022 15:43:01 +0000 (15:43 +0000)]
patch 8.2.4599: GTK: get assertion errors when scrolling a split window

Problem:    GTK: get assertion errors when scrolling a split window.
Solution:   Use GDK_IS_DRAWABLE() on the scrollbar window. (closes #9982)

2 years agopatch 8.2.4598: profile completion test sometimes fails v8.2.4598
Bram Moolenaar [Sun, 20 Mar 2022 13:40:41 +0000 (13:40 +0000)]
patch 8.2.4598: profile completion test sometimes fails

Problem:    Profile completion test sometimes fails.
Solution:   Delete the .res file before running tests.

2 years agopatch 8.2.4597: LuaV_debug() not covered by tests v8.2.4597
Dominique Pelle [Sun, 20 Mar 2022 11:46:01 +0000 (11:46 +0000)]
patch 8.2.4597: LuaV_debug() not covered by tests

Problem:    LuaV_debug() not covered by tests.
Solution:   Add a test. (Dominique PellĂ©, closes #9980)

2 years agopatch 8.2.4596: installing tutor binary may fail v8.2.4596
Sergei Trofimovich [Sun, 20 Mar 2022 11:26:36 +0000 (11:26 +0000)]
patch 8.2.4596: installing tutor binary may fail

Problem:    Installing tutor binary may fail.
Solution:   Fix the dependency. (Sergei Trofimovich, closes #9978)