]> granicus.if.org Git - vim/log
vim
2 years agopatch 8.2.4576: Vim9: error for comparing with null can be annoying v8.2.4576
Bram Moolenaar [Tue, 15 Mar 2022 20:21:33 +0000 (20:21 +0000)]
patch 8.2.4576: Vim9: error for comparing with null can be annoying

Problem:    Vim9: error for comparing with null can be annoying.
Solution:   Allow comparing anything with null. (closes #9948)

2 years agopatch 8.2.4575: Vim9: test for profiling still fails v8.2.4575
Bram Moolenaar [Tue, 15 Mar 2022 19:29:30 +0000 (19:29 +0000)]
patch 8.2.4575: Vim9: test for profiling still fails

Problem:    Vim9: test for profiling still fails.
Solution:   Update flags for profiling and breakpoints when obtaining the
            compile type.  Do not set the FC_CLOSURE flag for a toplevel
            function.

2 years agopatch 8.2.4574: Vim9: test for profiling fails v8.2.4574
Bram Moolenaar [Tue, 15 Mar 2022 16:16:47 +0000 (16:16 +0000)]
patch 8.2.4574: Vim9: test for profiling fails

Problem:    Vim9: test for profiling fails.
Solution:   Mark function for profiling earlier to avoid E1271.

2 years agopatch 8.2.4573: a nested function is compiled for debugging without context v8.2.4573
Bram Moolenaar [Tue, 15 Mar 2022 15:57:04 +0000 (15:57 +0000)]
patch 8.2.4573: a nested function is compiled for debugging without context

Problem:    A nested function (closure) is compiled for debugging without
            context.
Solution:   Check if a nested function is marked for debugging before
            compiling it.  Give an error when trying to compile a closure
            without its context. (closes #9951)

2 years agopatch 8.2.4572: Vim9: return type "any" is changed to first returned type v8.2.4572
Bram Moolenaar [Tue, 15 Mar 2022 12:28:10 +0000 (12:28 +0000)]
patch 8.2.4572: Vim9: return type "any" is changed to first returned type

Problem:    Vim9: return type "any" is sometimes changed to first returned
            type.  (Virginia Senioria)
Solution:   Do not change the return type if declared as "any". (closes #9949)

2 years agopatch 8.2.4571: not all gdb files are recognized v8.2.4571
Jade Lovelace [Tue, 15 Mar 2022 12:00:23 +0000 (12:00 +0000)]
patch 8.2.4571: not all gdb files are recognized

Problem:    Not all gdb files are recognized.
Solution:   Add a few more patterns for gdb. (Jade Lovelace, closes #9956)

2 years agopatch 8.2.4570: no command line completion for :profile and :profdel v8.2.4570
Yegappan Lakshmanan [Tue, 15 Mar 2022 10:53:09 +0000 (10:53 +0000)]
patch 8.2.4570: no command line completion for :profile and :profdel

Problem:    No command line completion for :profile and :profdel.
Solution:   Implement completion. (Yegappan Lakshmanan, closes #9955)

2 years agopatch 8.2.4569: Coverity warning for not using a return value v8.2.4569
Bram Moolenaar [Tue, 15 Mar 2022 10:22:39 +0000 (10:22 +0000)]
patch 8.2.4569: Coverity warning for not using a return value

Problem:    Coverity warning for not using a return value.
Solution:   Add "(void)".

2 years agopatch 8.2.4568: getmousepos() does not compute the column below the last line v8.2.4568
Sean Dewar [Tue, 15 Mar 2022 09:46:54 +0000 (09:46 +0000)]
patch 8.2.4568: getmousepos() does not compute the column below the last line

Problem:    getmousepos() does not compute the column below the last line.
Solution:   Also compute the column when the mouse is below the last line.
            (Sean Dewar, closes #9946)

2 years agopatch 8.2.4567: bracketed paste doesn't work well in Visual linewise mode v8.2.4567
zeertzjq [Mon, 14 Mar 2022 20:46:41 +0000 (20:46 +0000)]
patch 8.2.4567: bracketed paste doesn't work well in Visual linewise mode

Problem:    Bracketed paste doesn't work well in Visual linewise mode.
Solution:   Handle linewise Visual mode differently. (closes #9947)

2 years agopatch 8.2.4566: check for existing buffer in session file may not work v8.2.4566
James Cherti [Mon, 14 Mar 2022 20:24:51 +0000 (20:24 +0000)]
patch 8.2.4566: check for existing buffer in session file may not work

Problem:    Check for existing buffer in session file does not work for files
            in the home directory.
Solution:   Use fnamemodify(). (James Cherti, closes #9945)  Add a test.

2 years agopatch 8.2.4565: no command line completion for :breakadd and :breakdel v8.2.4565
Bram Moolenaar [Mon, 14 Mar 2022 19:24:46 +0000 (19:24 +0000)]
patch 8.2.4565: no command line completion for :breakadd and :breakdel

Problem:    No command line completion for :breakadd and :breakdel.
Solution:   Add completion for :breakadd and :breakdel. (Yegappan Lakshmanan,
            closes #9950)

2 years agopatch 8.2.4564: running test leaves file behind v8.2.4564
Bram Moolenaar [Mon, 14 Mar 2022 10:50:23 +0000 (10:50 +0000)]
patch 8.2.4564: running test leaves file behind

Problem:    Running test leaves file behind.  (Dominique PellĂ©)
Solution:   Run the profiling in a separate Vim instance. (closes #9952)

2 years agopatch 8.2.4563: "z=" in Visual mode may go beyond the end of the line v8.2.4563
Bram Moolenaar [Sun, 13 Mar 2022 20:12:25 +0000 (20:12 +0000)]
patch 8.2.4563: "z=" in Visual mode may go beyond the end of the line

Problem:    "z=" in Visual mode may go beyond the end of the line.
Solution:   Adjust "badlen".

2 years agopatch 8.2.4562: linear tag search is not optimal v8.2.4562
Yegappan Lakshmanan [Sun, 13 Mar 2022 19:23:48 +0000 (19:23 +0000)]
patch 8.2.4562: linear tag search is not optimal

Problem:    Linear tag search is not optimal.
Solution:   Improve linear tag search performance. (Yegappan Lakshmanan,
            closes #9944)

2 years agopatch 8.2.4561: build failure with some combination of features v8.2.4561
Bram Moolenaar [Sun, 13 Mar 2022 19:08:48 +0000 (19:08 +0000)]
patch 8.2.4561: build failure with some combination of features

Problem:    Build failure with some combination of features. (John Marriott)
Solution:   Adjust #ifdef.

2 years agopatch 8.2.4560: suspending with CTRL-Z does not work on DragonFlyBSD v8.2.4560
ichizok [Sun, 13 Mar 2022 17:27:38 +0000 (17:27 +0000)]
patch 8.2.4560: suspending with CTRL-Z does not work on DragonFlyBSD

Problem:    Suspending with CTRL-Z does not work on DragonFlyBSD.
Solution:   Adjust #ifdef. (Ozaki Kiichi, closes #9943)

2 years agopatch 8.2.4559: getmousepos() returns the screen column v8.2.4559
Bram Moolenaar [Sun, 13 Mar 2022 15:52:44 +0000 (15:52 +0000)]
patch 8.2.4559: getmousepos() returns the screen column

Problem:    getmousepos() returns the screen column. (Ernie Rael)
Solution:   Return the text column, as documented.

2 years agopatch 8.2.4558: Motif: using default colors does not work as expected v8.2.4558
Bram Moolenaar [Sun, 13 Mar 2022 14:45:03 +0000 (14:45 +0000)]
patch 8.2.4558: Motif: using default colors does not work as expected

Problem:    Motif: using default colors does not work as expected.
Solution:   Do not try to store the default colors, use the resources.
            (closes #9933)

2 years agopatch 8.2.4557: confusing comment about 'cursorlineopt' v8.2.4557
zeertzjq [Sun, 13 Mar 2022 13:40:45 +0000 (13:40 +0000)]
patch 8.2.4557: confusing comment about 'cursorlineopt'

Problem:    Confusing comment about 'cursorlineopt'.
Solution:   Adjust comment.  (closes #9939)  Add parenthesis around logical
            OR.

2 years agopatch 8.2.4556: test fails without the +job or +channel feature v8.2.4556
Bram Moolenaar [Sun, 13 Mar 2022 13:12:27 +0000 (13:12 +0000)]
patch 8.2.4556: test fails without the +job or +channel feature

Problem:    Test fails without the +job or +channel feature. (Dominique PellĂ©)
Solution:   Adjust #ifdefs.  Pass on skip flag. (closes #9942)

2 years agopatch 8.2.4555: getmousepos() returns the wrong column v8.2.4555
Bram Moolenaar [Sun, 13 Mar 2022 12:06:07 +0000 (12:06 +0000)]
patch 8.2.4555: getmousepos() returns the wrong column

Problem:    getmousepos() returns the wrong column. (Ernie Rael)
Solution:   Limit to the text size, not the number of bytes.

2 years agopatch 8.2.4554: Vim9: using null values not sufficiently tested v8.2.4554
Bram Moolenaar [Sat, 12 Mar 2022 21:28:22 +0000 (21:28 +0000)]
patch 8.2.4554: Vim9: using null values not sufficiently tested

Problem:    Vim9: using null values not sufficiently tested.
Solution:   Add more tests.  Fix uncovered problem.

2 years agopatch 8.2.4553: linear tag search is a bit slow v8.2.4553
Yegappan Lakshmanan [Sat, 12 Mar 2022 17:38:29 +0000 (17:38 +0000)]
patch 8.2.4553: linear tag search is a bit slow

Problem:    Linear tag search is a bit slow.
Solution:   Remove a vim_ftell() call. (Yegappan Lakshmanan, closes #9937)

2 years agopatch 8.2.4552: in a :def function "put = expr" does not work v8.2.4552
Bram Moolenaar [Sat, 12 Mar 2022 14:51:16 +0000 (14:51 +0000)]
patch 8.2.4552: in a :def function "put = expr" does not work

Problem:    In a :def function "put = expr" does not work.
Solution:   Skip over white space. (closes #9936)

2 years agopatch 8.2.4551: when mapping <Esc> terminal codes are not recognized v8.2.4551
Bram Moolenaar [Sat, 12 Mar 2022 13:48:39 +0000 (13:48 +0000)]
patch 8.2.4551: when mapping <Esc> terminal codes are not recognized

Problem:    When mapping <Esc> terminal codes are not recognized.
Solution:   Specifically recognize a mapping with just <Esc> and check for
            terminal codes even though there is no partial mapping.
            (closes #9903)

2 years agopatch 8.2.4550: Motif: cannot set the color of the scrollbar thumb v8.2.4550
Bram Moolenaar [Sat, 12 Mar 2022 12:21:28 +0000 (12:21 +0000)]
patch 8.2.4550: Motif: cannot set the color of the scrollbar thumb

Problem:    Motif: cannot set the color of the scrollbar thumb.
Solution:   Remove #ifdef.

2 years agopatch 8.2.4549: cannot build with Motif and editres v8.2.4549
Bram Moolenaar [Sat, 12 Mar 2022 11:57:25 +0000 (11:57 +0000)]
patch 8.2.4549: cannot build with Motif and editres

Problem:    Cannot build with Motif and editres. (Tony Mechelynck)
Solution:   Fix configure mistake.

2 years agopatch 8.2.4548: script-local function is deleted when used in a funcref v8.2.4548
Bram Moolenaar [Fri, 11 Mar 2022 18:54:17 +0000 (18:54 +0000)]
patch 8.2.4548: script-local function is deleted when used in a funcref

Problem:    Script-local function is deleted when used in a funcref.
Solution:   Do not consider a function starting with "<SNR>" reference
            counted. (closes #9916, closes #9820)

2 years agopatch 8.2.4547: the neXTaw GUI is old and does not work well v8.2.4547
Bram Moolenaar [Fri, 11 Mar 2022 16:01:26 +0000 (16:01 +0000)]
patch 8.2.4547: the neXTaw GUI is old and does not work well

Problem:    The neXTaw GUI is old and does not work well.
Solution:   Remove the neXTaw GUI from configure to find out who still wants
            support for this GUI.

2 years agopatch 8.2.4546: duplicate #undef v8.2.4546
zeertzjq [Fri, 11 Mar 2022 15:33:53 +0000 (15:33 +0000)]
patch 8.2.4546: duplicate #undef

Problem:    Duplicate #undef.
Solution:   Remove one #undef. (closes #9932)

2 years agopatch 8.2.4545: MS-Windows: the installed icon is low resolution v8.2.4545
Christian Brabandt [Fri, 11 Mar 2022 15:24:11 +0000 (15:24 +0000)]
patch 8.2.4545: MS-Windows: the installed icon is low resolution

Problem:    MS-Windows: the installed icon is low resolution.
Solution:   Use a better icon.  Install vim.ico. (Christian Brabandt,
            closes #9931, closes #9930)

2 years agopatch 8.2.4544: Coverity warnings for not using returned value v8.2.4544
Bram Moolenaar [Fri, 11 Mar 2022 14:54:03 +0000 (14:54 +0000)]
patch 8.2.4544: Coverity warnings for not using returned value

Problem:    Coverity warnings for not using returned value.
Solution:   Assign to vim_ignored.

2 years agopatch 8.2.4543: Coverity warning for refactored tag search code v8.2.4543
Yegappan Lakshmanan [Fri, 11 Mar 2022 12:05:18 +0000 (12:05 +0000)]
patch 8.2.4543: Coverity warning for refactored tag search code

Problem:    Coverity warning for refactored tag search code.
Solution:   Avoid the warnings.  Update comments.  Add one more test case.
            (Yegappan Lakshmanan, closes #9928)

2 years agopatch 8.2.4542: Vim9: "break" inside try/catch not handled correctly v8.2.4542
Bram Moolenaar [Thu, 10 Mar 2022 21:53:44 +0000 (21:53 +0000)]
patch 8.2.4542: Vim9: "break" inside try/catch not handled correctly

Problem:    Vim9: "break" inside try/catch not handled correctly.
Solution:   First jump to :endtry. (closes #9927)

2 years agopatch 8.2.4541: Crash in debugger when a variable is not available v8.2.4541
Bram Moolenaar [Thu, 10 Mar 2022 20:47:43 +0000 (20:47 +0000)]
patch 8.2.4541: Crash in debugger when a variable is not available

Problem:    Crash in debugger when a variable is not available in the current
            block.
Solution:   Check for a NULL name. (closes #9926)

2 years agopatch 8.2.4540: line number for error is off by one v8.2.4540
Bram Moolenaar [Thu, 10 Mar 2022 20:01:50 +0000 (20:01 +0000)]
patch 8.2.4540: line number for error is off by one

Problem:    Line number for error is off by one.
Solution:   Remember the line number of the comparison. (closes #9923)

2 years agopatch 8.2.4539: when comparing special v:none and v:null are handled the same v8.2.4539
Bram Moolenaar [Thu, 10 Mar 2022 19:23:28 +0000 (19:23 +0000)]
patch 8.2.4539: when comparing special v:none and v:null are handled the same

Problem:    When comparing special v:none and v:null are handled the same when
            compiling.
Solution:   Pass more information so that v:none can be handled differently at
            compile time.  (issue #9923)

2 years agopatch 8.2.4538: the find_tags_in_file() function is too long v8.2.4538
Yegappan Lakshmanan [Thu, 10 Mar 2022 18:36:54 +0000 (18:36 +0000)]
patch 8.2.4538: the find_tags_in_file() function is too long

Problem:    The find_tags_in_file() function is too long.
Solution:   Refactor into smaller functions. (Yegappan Lakshmanan,
            closes #9920)

2 years agopatch 8.2.4537: output from linter and language server shows up in git v8.2.4537
=?UTF-8?q?Dundar=20G=C3=B6c?= [Thu, 10 Mar 2022 15:51:24 +0000 (15:51 +0000)]
patch 8.2.4537: output from linter and language server shows up in git

Problem:    Output from linter and language server shows up in git.
Solution:   Add patterns to .gitignore. (Goc Dundar, closes #9925)

2 years agopatch 8.2.4536: debugger test fails when breaking on expression v8.2.4536
Bram Moolenaar [Thu, 10 Mar 2022 13:29:20 +0000 (13:29 +0000)]
patch 8.2.4536: debugger test fails when breaking on expression

Problem:    Debugger test fails when breaking on expression.
Solution:   Compare strings with "==" instead of "is".

2 years agopatch 8.2.4535: filename modifer ":8" removes the filename v8.2.4535
Christian Brabandt [Thu, 10 Mar 2022 12:24:02 +0000 (12:24 +0000)]
patch 8.2.4535: filename modifer ":8" removes the filename

Problem:    Filename modifer ":8" removes the filename.
Solution:   Use strncpy() instead of vim_strncpy(). (Christian Brabandt,
            closes #9918, closes #8600)

2 years agopatch 8.2.4534: Vim9: "is" operator with empty string and null returns true v8.2.4534
Bram Moolenaar [Thu, 10 Mar 2022 12:20:53 +0000 (12:20 +0000)]
patch 8.2.4534: Vim9: "is" operator with empty string and null returns true

Problem:    Vim9: "is" operator with empty string and null returns true.
Solution:   Consider empty string and null to be different for "is".

2 years agopatch 8.2.4533: Vim9: no test that after assigning null type is still checked v8.2.4533
Bram Moolenaar [Wed, 9 Mar 2022 19:46:48 +0000 (19:46 +0000)]
patch 8.2.4533: Vim9: no test that after assigning null type is still checked

Problem:    Vim9: no test that after assigning null the type is still checked.
Solution:   Add a test.

2 years agopatch 8.2.4532: suspending with CTRL-Z does not work on OpenBSD v8.2.4532
Stuart Henderson [Wed, 9 Mar 2022 14:33:02 +0000 (14:33 +0000)]
patch 8.2.4532: suspending with CTRL-Z does not work on OpenBSD

Problem:    Suspending with CTRL-Z does not work on OpenBSD.
Solution:   Adjust #ifdef for SIGTSTP. (Stuart Henderson, closes #9912)

2 years agopatch 8.2.4531: LGTM warnings for condition and buffer size v8.2.4531
=?UTF-8?q?Dundar=20G=C3=B6c?= [Wed, 9 Mar 2022 13:00:54 +0000 (13:00 +0000)]
patch 8.2.4531: LGTM warnings for condition and buffer size

Problem:    LGTM warnings for condition always true and buffer size too small.
Solution:   Remove the useless condition.  Make the buffer larger. (Goc
            Dundar, closes #9914)

2 years agopatch 8.2.4530: making comparison with null work changes legacy behavior v8.2.4530
Bram Moolenaar [Wed, 9 Mar 2022 11:56:21 +0000 (11:56 +0000)]
patch 8.2.4530: making comparison with null work changes legacy behavior

Problem:    Making comparison with null work changes legacy behavior.
Solution:   Only use the better comparison in Vim9 script. (closes #9910)

2 years agoUpdate runtime files
Bram Moolenaar [Tue, 8 Mar 2022 21:35:07 +0000 (21:35 +0000)]
Update runtime files

2 years agopatch 8.2.4529: Vim9: comparing partial with function fails v8.2.4529
Bram Moolenaar [Tue, 8 Mar 2022 19:43:55 +0000 (19:43 +0000)]
patch 8.2.4529: Vim9: comparing partial with function fails

Problem:    Vim9: comparing partial with function fails.
Solution:   Support this comparison.  Avoid a crash. (closes #9909)
            Add more test cases.

2 years agopatch 8.2.4528: crash when using null_function for a partial v8.2.4528
Bram Moolenaar [Tue, 8 Mar 2022 16:52:24 +0000 (16:52 +0000)]
patch 8.2.4528: crash when using null_function for a partial

Problem:    Crash when using null_function for a partial.
Solution:   Don't call fname_trans_sid() with NULL. (closes #9908)

2 years agopatch 8.2.4527: the Athena GUI is old and does not work well v8.2.4527
Bram Moolenaar [Tue, 8 Mar 2022 13:32:37 +0000 (13:32 +0000)]
patch 8.2.4527: the Athena GUI is old and does not work well

Problem:    The Athena GUI is old and does not work well.
Solution:   Remove the Athena GUI from configure to find out who still wants
            support for this GUI.

2 years agopatch 8.2.4526: Vim9: cannot set variables to a null value v8.2.4526
Bram Moolenaar [Tue, 8 Mar 2022 13:18:55 +0000 (13:18 +0000)]
patch 8.2.4526: Vim9: cannot set variables to a null value

Problem:    Vim9: cannot set variables to a null value.
Solution:   Add null_list, null_job, etc.

2 years agopatch 8.2.4525: some GUI tests don't work on Athena v8.2.4525
Yegappan Lakshmanan [Mon, 7 Mar 2022 16:57:22 +0000 (16:57 +0000)]
patch 8.2.4525: some GUI tests don't work on Athena

Problem:    Some GUI tests don't work on Athena.
Solution:   Skip tests that won't work. (Yegappan Lakshmanan, closes #9902)

2 years agopatch 8.2.4524: MS-Windows: cannot build with some sodium libraries v8.2.4524
K.Takata [Mon, 7 Mar 2022 15:16:15 +0000 (15:16 +0000)]
patch 8.2.4524: MS-Windows: cannot build with some sodium libraries

Problem:    MS-Windows: cannot build with some sodium libraries.
Solution:   Make the DLL name configuragle.  Add build instructions.
            (Ken Takata, closes #9905)

2 years agopatch 8.2.4523: when gvim is started maximized the 'window' option isn't set v8.2.4523
K.Takata [Mon, 7 Mar 2022 13:31:15 +0000 (13:31 +0000)]
patch 8.2.4523: when gvim is started maximized the 'window' option isn't set

Problem:    When gvim is started maximized the 'window' option isn't set
            properly. (Christian J. Robinson)
Solution:   Check if 'windows' was already set or not. (Ken Takata,
            closes #9904)

2 years agopatch 8.2.4522: GUI test fails with Motif v8.2.4522
Bram Moolenaar [Sun, 6 Mar 2022 22:21:37 +0000 (22:21 +0000)]
patch 8.2.4522: GUI test fails with Motif

Problem:    GUI test fails with Motif. (Dominique PellĂ©)
Solution:   Remove using an invalid value for 'guifontset'.

2 years agopatch 8.2.4521: build failure without the +diff feature v8.2.4521
Bram Moolenaar [Sun, 6 Mar 2022 20:47:01 +0000 (20:47 +0000)]
patch 8.2.4521: build failure without the +diff feature

Problem:    Build failure without the +diff feature. (John Marriott)
Solution:   Define filler+lines if not declaring it.

2 years agopatch 8.2.4520: using wrong highlight for cursor line number v8.2.4520
Bram Moolenaar [Sun, 6 Mar 2022 19:54:13 +0000 (19:54 +0000)]
patch 8.2.4520: using wrong highlight for cursor line number

Problem:    Using wrong highlight for cursor line number.
Solution:   Take filler lines into account when using CursorLineNr.
            (closes #9897)

2 years agopatch 8.2.4519: Vim9: Can still use ":fini" and ":finis" for ":finish" v8.2.4519
Bram Moolenaar [Sun, 6 Mar 2022 14:51:22 +0000 (14:51 +0000)]
patch 8.2.4519: Vim9: Can still use ":fini" and ":finis" for ":finish"

Problem:    Vim9: Can still use ":fini" and ":finis" for ":finish".
Solution:   Require using ":finish".

2 years agopatch 8.2.4518: the binary tag search feature is always enabled v8.2.4518
Yegappan Lakshmanan [Sun, 6 Mar 2022 14:27:10 +0000 (14:27 +0000)]
patch 8.2.4518: the binary tag search feature is always enabled

Problem:    The binary tag search feature is always enabled.
Solution:   Remove the #ifdefs.  Add a few more tests. (Yegappan Lakshmanan,
            closes #9893)

2 years agopatch 8.2.4517: MS-Windows: cannot specify location of sodium library v8.2.4517
K.Takata [Sun, 6 Mar 2022 14:01:52 +0000 (14:01 +0000)]
patch 8.2.4517: MS-Windows: cannot specify location of sodium library

Problem:    MS-Windows: cannot specify location of sodium library.
Solution:   Allow for using a path for SODIUM. (Ken Takata, closes #9896)

2 years agopatch 8.2.4516: build failure without the +eval feature v8.2.4516
Bram Moolenaar [Sat, 5 Mar 2022 22:07:32 +0000 (22:07 +0000)]
patch 8.2.4516: build failure without the +eval feature

Problem:    Build failure without the +eval feature.
Solution:   Move error message outside of #ifdef.

2 years agopatch 8.2.4515: old subsitute syntax is still supported v8.2.4515
Bram Moolenaar [Sat, 5 Mar 2022 21:13:26 +0000 (21:13 +0000)]
patch 8.2.4515: old subsitute syntax is still supported

Problem:    Old subsitute syntax is still supported.
Solution:   Disallow using backslash after ":s" in Vim9 script.

2 years agopatch 8.2.4514: Vim9: some flow commands can be shortened v8.2.4514
Bram Moolenaar [Sat, 5 Mar 2022 20:24:41 +0000 (20:24 +0000)]
patch 8.2.4514: Vim9: some flow commands can be shortened

Problem:    Vim9: some flow commands can be shortened.
Solution:   Also require using the full name for ":return", ":enddef",
            ":continue", ":export" and ":import".

2 years agopatch 8.2.4513: window-local directory is not applied if 'acd' fails v8.2.4513
zeertzjq [Sat, 5 Mar 2022 17:00:31 +0000 (17:00 +0000)]
patch 8.2.4513: window-local directory is not applied if 'acd' fails

Problem:    Window-local directory is not applied if 'acd' fails.
Solution:   Don't call do_autochdir(). (closes #9891)

2 years agopatch 8.2.4512: the find_tags_in_file() function is much too long v8.2.4512
Yegappan Lakshmanan [Sat, 5 Mar 2022 14:35:12 +0000 (14:35 +0000)]
patch 8.2.4512: the find_tags_in_file() function is much too long

Problem:    The find_tags_in_file() function is much too long.
Solution:   Refactor into multiple smaller functions. (Yegappan Lakshmanan,
            closes #9892)

2 years agopatch 8.2.4511: filetype test fails v8.2.4511
Bram Moolenaar [Sat, 5 Mar 2022 13:45:56 +0000 (13:45 +0000)]
patch 8.2.4511: filetype test fails

Problem:    Filetype test fails.
Solution:   Change "endw" to "endwhile".

2 years agopatch 8.2.4510: Vim9: shortening commands leads to confusing script v8.2.4510
Bram Moolenaar [Sat, 5 Mar 2022 12:56:44 +0000 (12:56 +0000)]
patch 8.2.4510: Vim9: shortening commands leads to confusing script

Problem:    Vim9: shortening commands leads to confusing script.
Solution:   In Vim9 script require at least ":cont" for ":continue", "const"
            instead of "cons", "break" instead of "brea", "catch" instead of
            "cat", "else" instead of "el" "elseif" instead of "elsei" "endfor"
            instead of "endfo" "endif" instead of "en" "endtry" instead of
            "endt", "finally" instead of "fina", "throw" instead of "th",
            "while" instead of "wh".

2 years agopatch 8.2.4509: Vim9: can declare a variable with ":va" v8.2.4509
Bram Moolenaar [Sat, 5 Mar 2022 11:37:48 +0000 (11:37 +0000)]
patch 8.2.4509: Vim9: can declare a variable with ":va"

Problem:    Vim9: can declare a variable with ":va".
Solution:   Disallow using ":va", require using ":var".

2 years agopatch 8.2.4508: Vim9: cannot assign to a global variable on the command line v8.2.4508
Bram Moolenaar [Sat, 5 Mar 2022 11:05:57 +0000 (11:05 +0000)]
patch 8.2.4508: Vim9: cannot assign to a global variable on the command line

Problem:    Vim9: cannot assign to a global variable on the command line.
Solution:   Allow using :vim9cmd for assignment on the command line.

2 years agopatch 8.2.4507: test fails because of new error message v8.2.4507
Bram Moolenaar [Fri, 4 Mar 2022 23:22:27 +0000 (23:22 +0000)]
patch 8.2.4507: test fails because of new error message

Problem:    Test fails because of new error message.
Solution:   Avoid the test fails.

2 years agopatch 8.2.4506: "pattern not found" for :global is not an error message v8.2.4506
Bram Moolenaar [Fri, 4 Mar 2022 21:34:31 +0000 (21:34 +0000)]
patch 8.2.4506: "pattern not found" for :global is not an error message

Problem:    "pattern not found" for :global is not an error message.
Solution:   In Vim9 script make this an actual error, so that try/catch can be
            used as expected.

2 years agopatch 8.2.4505: Vim9: outdated "autocmd nested" still works v8.2.4505
Bram Moolenaar [Fri, 4 Mar 2022 20:10:38 +0000 (20:10 +0000)]
patch 8.2.4505: Vim9: outdated "autocmd nested" still works

Problem:    Vim9: outdated "autocmd nested" still works.
Solution:   Do not accept the :autocmd argument "nested" without "++" in Vim9
            script.

2 years agopatch 8.2.4504: when there is a partially matching map full map may not work v8.2.4504
Bram Moolenaar [Fri, 4 Mar 2022 19:22:36 +0000 (19:22 +0000)]
patch 8.2.4504: when there is a partially matching map full map may not work

Problem:    When there is a partially matching map and modifyOtherKeys is
            active a full map may not work.
Solution:   Only simplify modifiers when there is no matching mapping.
            (closes #8792)

2 years agopatch 8.2.4503: Vim9: there is no point in supporting :Print and :mode v8.2.4503
Bram Moolenaar [Fri, 4 Mar 2022 17:10:19 +0000 (17:10 +0000)]
patch 8.2.4503: Vim9: there is no point in supporting :Print and :mode

Problem:    Vim9: there is no point in supporting :Print and :mode.
Solution:   Do not recognize :Print and :mode as commands. (closes #9870)

2 years agopatch 8.2.4502: in the GUI a modifier is not recognized after CTRL-X v8.2.4502
Bram Moolenaar [Fri, 4 Mar 2022 14:51:06 +0000 (14:51 +0000)]
patch 8.2.4502: in the GUI a modifier is not recognized after CTRL-X

Problem:    In the GUI a modifier is not recognized for the key typed after
            CTRL-X, which may result in a mapping to be used. (Daniel
            Steinberg)
Solution:   Recognize a modifier starting with CSI. (closes #9889)

2 years agopatch 8.2.4501: with 'showbreak' set cursor displayed in wrong position v8.2.4501
Bram Moolenaar [Thu, 3 Mar 2022 20:04:03 +0000 (20:04 +0000)]
patch 8.2.4501: with 'showbreak' set cursor displayed in wrong position

Problem:    With 'showbreak' set and after the end of the line the cursor
            may be displayed in the wrong position.
Solution:   Do not apply 'showbreak' after the end of the line. (closes #9884)

2 years agopatch 8.2.4500: Vim9: can declare a global variable on the command line v8.2.4500
Bram Moolenaar [Thu, 3 Mar 2022 17:05:35 +0000 (17:05 +0000)]
patch 8.2.4500: Vim9: can declare a global variable on the command line

Problem:    Vim9: can declare a global variable on the command line.
Solution:   Disallow declaring a variable on the command line. (closes #9881)

2 years agopatch 8.2.4499: Vim9: at the script level declarations leak to next block v8.2.4499
Bram Moolenaar [Thu, 3 Mar 2022 15:11:20 +0000 (15:11 +0000)]
patch 8.2.4499: Vim9: at the script level declarations leak to next block

Problem:    Vim9: at the script level declarations leak from try block to
            catch and finally block.
Solution:   End the block and start a new one. (closes #9883)

2 years agopatch 8.2.4498: using <Plug> with "noremap" does not work v8.2.4498
Bram Moolenaar [Thu, 3 Mar 2022 13:56:24 +0000 (13:56 +0000)]
patch 8.2.4498: using <Plug> with "noremap" does not work

Problem:    Using <Plug> with "noremap" does not work.
Solution:   Always remap <Plug>. (closes #9879, closes #9789)

2 years agopatch 8.2.4497: wrong color for half of wide character next to pum scrollbar v8.2.4497
Bram Moolenaar [Thu, 3 Mar 2022 11:46:00 +0000 (11:46 +0000)]
patch 8.2.4497: wrong color for half of wide character next to pum scrollbar

Problem:    Wrong color for half of wide character next to pum scrollbar.
Solution:   Redraw the screen cell with the right color. (closes #9874)

2 years agopatch 8.2.4496: Coverity gives warnings after tags code refactoring v8.2.4496
Bram Moolenaar [Thu, 3 Mar 2022 10:44:17 +0000 (10:44 +0000)]
patch 8.2.4496: Coverity gives warnings after tags code refactoring

Problem:    Coverity gives warnings after tags code refactoring.
Solution:   Avoid the warnings. (Yegappan Lakshmanan, closes #9882)

2 years agopatch 8.2.4495: help test fails in 24 line terminal v8.2.4495
Bram Moolenaar [Wed, 2 Mar 2022 20:49:50 +0000 (20:49 +0000)]
patch 8.2.4495: help test fails in 24 line terminal

Problem:    Help test fails in 24 line terminal.
Solution:   Use up to 23 lines for text.

2 years agopatch 8.2.4494: the find_tags() function is much too long v8.2.4494
Yegappan Lakshmanan [Wed, 2 Mar 2022 20:29:35 +0000 (20:29 +0000)]
patch 8.2.4494: the find_tags() function is much too long

Problem:    The find_tags() function is much too long.
Solution:   Refactor the function. (Yegappan Lakshmanan, closes #9869)

2 years agopatch 8.2.4493: options test fails in the GUI v8.2.4493
Bram Moolenaar [Wed, 2 Mar 2022 20:12:03 +0000 (20:12 +0000)]
patch 8.2.4493: options test fails in the GUI

Problem:    Options test fails in the GUI.
Solution:   Do not save and restore 'term'.

2 years agopatch 8.2.4492: no error if an option is given a value with ":let &opt = val" v8.2.4492
Bram Moolenaar [Wed, 2 Mar 2022 19:49:38 +0000 (19:49 +0000)]
patch 8.2.4492: no error if an option is given a value with ":let &opt = val"

Problem:    No error if an option is given an invalid value with
            ":let &opt = val".
Solution:   Give the error. (closes #9864)

2 years agopatch 8.2.4491: MS-Windows makefile dependencies are outdated v8.2.4491
K.Takata [Wed, 2 Mar 2022 17:34:56 +0000 (17:34 +0000)]
patch 8.2.4491: MS-Windows makefile dependencies are outdated

Problem:    MS-Windows makefile dependencies are outdated.
Solution:   Update dependencies. (Ken Takata, closes #9876)

2 years agopatch 8.2.4490: terminal focus reporting only works for xterm-like terminals v8.2.4490
Bram Moolenaar [Wed, 2 Mar 2022 17:16:39 +0000 (17:16 +0000)]
patch 8.2.4490: terminal focus reporting only works for xterm-like terminals

Problem:    Terminal focus reporting only works for xterm-like terminals.
            (Jonathan Rascher)
Solution:   Remove the "focus_mode" flag. (closes #9859)

2 years agopatch 8.2.4489: failing test for comparing v:null with number v8.2.4489
Bram Moolenaar [Wed, 2 Mar 2022 13:13:30 +0000 (13:13 +0000)]
patch 8.2.4489: failing test for comparing v:null with number

Problem:    Failing test for comparing v:null with number.
Solution:   Allow comparing v:null with number in legacy script.
            (Ken Takata, closes #9873)  Also do this for float.

2 years agopatch 8.2.4488: build error with +eval but without +channel or +job v8.2.4488
Bram Moolenaar [Tue, 1 Mar 2022 19:52:48 +0000 (19:52 +0000)]
patch 8.2.4488: build error with +eval but without +channel or +job

Problem:    Build error with +eval but without +channel or +job.
Solution:   Add #ifdef. (John Marriott)

2 years agopatch 8.2.4487: Vim9: cannot compare with v:null v8.2.4487
Bram Moolenaar [Tue, 1 Mar 2022 19:23:24 +0000 (19:23 +0000)]
patch 8.2.4487: Vim9: cannot compare with v:null

Problem:    Vim9: cannot compare with v:null.
Solution:   Allow comparing anything with v:null. (closes #9866)

2 years agopatch 8.2.4486: MS-Windows GUI: slow scrolling with maximized window v8.2.4486
Bram Moolenaar [Tue, 1 Mar 2022 16:02:26 +0000 (16:02 +0000)]
patch 8.2.4486: MS-Windows GUI: slow scrolling with maximized window

Problem:    MS-Windows GUI: slow scrolling with maximized window.
Solution:   Use a better way to check the window is on screen. (Ken Takata,
            closes #9865)

2 years agopatch 8.2.4485: compiler warning for uninitialized variable v8.2.4485
Bram Moolenaar [Mon, 28 Feb 2022 21:02:19 +0000 (21:02 +0000)]
patch 8.2.4485: compiler warning for uninitialized variable

Problem:    Compiler warning for uninitialized variable.
Solution:   Initialize the variable. (John Marriott)

2 years agopatch 8.2.4484: Vim9: some error messages are not tested v8.2.4484
Bram Moolenaar [Mon, 28 Feb 2022 20:55:02 +0000 (20:55 +0000)]
patch 8.2.4484: Vim9: some error messages are not tested

Problem:    Vim9: some error messages are not tested.
Solution:   Add a few more test cases.  Delete dead code.

2 years agopatch 8.2.4483: command completion makes two rounds to collect matches v8.2.4483
Yegappan Lakshmanan [Mon, 28 Feb 2022 13:28:38 +0000 (13:28 +0000)]
patch 8.2.4483: command completion makes two rounds to collect matches

Problem:    Command completion makes two rounds to collect matches.
Solution:   Use a growarray to collect matches. (Yegappan Lakshmanan,
            closes #9860)

2 years agopatch 8.2.4482: no fuzzy cmdline completion for user defined completion v8.2.4482
Yegappan Lakshmanan [Sun, 27 Feb 2022 21:03:21 +0000 (21:03 +0000)]
patch 8.2.4482: no fuzzy cmdline completion for user defined completion

Problem:    No fuzzy cmdline completion for user defined completion.
Solution:   Add fuzzy completion for user defined completion. (Yegappan
            Lakshmanan, closes #9858)

2 years agopatch 8.2.4481: cmdline popup menu not removed when 'lazyredraw' is set v8.2.4481
Bram Moolenaar [Sun, 27 Feb 2022 14:28:31 +0000 (14:28 +0000)]
patch 8.2.4481: cmdline popup menu not removed when 'lazyredraw' is set

Problem:    Cmdline popup menu not removed when 'lazyredraw' is set.
Solution:   Temporarily reset 'lazyredraw' when removing the popup menu.
            (closes #9857)

2 years agopatch 8.2.4480: suspending with CTRL-Z does not work on Android v8.2.4480
xtkoba [Sun, 27 Feb 2022 12:31:52 +0000 (12:31 +0000)]
patch 8.2.4480: suspending with CTRL-Z does not work on Android

Problem:    Suspending with CTRL-Z does not work on Android.
Solution:   Do not handle SIGTSTP. (closes #9854)

2 years agopatch 8.2.4479: no fuzzy completieon for maps and abbreviations v8.2.4479
Yegappan Lakshmanan [Sun, 27 Feb 2022 12:07:30 +0000 (12:07 +0000)]
patch 8.2.4479: no fuzzy completieon for maps and abbreviations

Problem:    No fuzzy completieon for maps and abbreviations.
Solution:   Fuzzy complete maps and abbreviations. (Yegappan Lakshmanan,
            closes #9856)

2 years agopatch 8.2.4478: crash when using fuzzy completion v8.2.4478
Yegappan Lakshmanan [Sat, 26 Feb 2022 16:05:08 +0000 (16:05 +0000)]
patch 8.2.4478: crash when using fuzzy completion

Problem:    Crash when using fuzzy completion.
Solution:   Temporary fix: put back regexp. (closes #9852, closes #9851)