]> granicus.if.org Git - vim/log
vim
4 years agopatch 8.2.1685: Vim9: cannot declare a constant value v8.2.1685
Bram Moolenaar [Mon, 14 Sep 2020 19:39:44 +0000 (21:39 +0200)]
patch 8.2.1685: Vim9: cannot declare a constant value

Problem:    Vim9: cannot declare a constant value.
Solution:   Introduce ":const!".

4 years agopatch 8.2.1684: "gF" does not use line number after file in Visual mode v8.2.1684
Bram Moolenaar [Mon, 14 Sep 2020 17:11:45 +0000 (19:11 +0200)]
patch 8.2.1684: "gF" does not use line number after file in Visual mode

Problem:    "gF" does not use line number after file in Visual mode.
Solution:   Look for ":123" after the Visual area. (closes #6952)

4 years agopatch 8.2.1683: Vim9: assignment test fails v8.2.1683
Bram Moolenaar [Mon, 14 Sep 2020 16:35:18 +0000 (18:35 +0200)]
patch 8.2.1683: Vim9: assignment test fails

Problem:    Vim9: assignment test fails.
Solution:   Include changes to find Ex command.

4 years agopatch 8.2.1682: Vim9: const works in an unexpected way v8.2.1682
Bram Moolenaar [Mon, 14 Sep 2020 16:15:09 +0000 (18:15 +0200)]
patch 8.2.1682: Vim9: const works in an unexpected way

Problem:    Vim9: const works in an unexpected way.
Solution:   ":const" only disallows changing the variable, not the value.
            Make "list[0] = 9" work at the script level.

4 years agopatch 8.2.1681: Vim9: unnessary :call commands in tests v8.2.1681
Bram Moolenaar [Mon, 14 Sep 2020 15:04:31 +0000 (17:04 +0200)]
patch 8.2.1681: Vim9: unnessary :call commands in tests

Problem:    Vim9: unnessary :call commands in tests.
Solution:   Remove the commands. (issue #6936)

4 years agopatch 8.2.1680: Vim9: line number for compare error is wrong v8.2.1680
Bram Moolenaar [Mon, 14 Sep 2020 14:50:05 +0000 (16:50 +0200)]
patch 8.2.1680: Vim9: line number for compare error is wrong

Problem:    Vim9: line number for compare error is wrong.
Solution:   Set SOURCING_LNUM. (closes #6936)

4 years agopatch 8.2.1679: Vim9: ":*" is not recognized as a range v8.2.1679
Bram Moolenaar [Mon, 14 Sep 2020 14:37:34 +0000 (16:37 +0200)]
patch 8.2.1679: Vim9: ":*" is not recognized as a range

Problem:    Vim9: ":*" is not recognized as a range.
Solution:   Move recognizing "*" into skip_range(). (closes #6838)

4 years agopatch 8.2.1678: crash when using ":set" after ":ownsyntax" v8.2.1678
Bram Moolenaar [Sun, 13 Sep 2020 20:37:34 +0000 (22:37 +0200)]
patch 8.2.1678: crash when using ":set" after ":ownsyntax"

Problem:    Crash when using ":set" after ":ownsyntax".
Solution:   Make sure 'spelloptions' is not NULL. (closes #6950)

4 years agopatch 8.2.1677: memory access errors when calling setloclist() in autocommand v8.2.1677
Bram Moolenaar [Sun, 13 Sep 2020 20:21:22 +0000 (22:21 +0200)]
patch 8.2.1677: memory access errors when calling setloclist() in autocommand

Problem:    Memory access errors when calling setloclist() in an autocommand.
Solution:   Give an error if the list was changed unexpectedly. (closes #6946)

4 years agopatch 8.2.1676: compiler warnings for function typecast v8.2.1676
Bram Moolenaar [Sun, 13 Sep 2020 20:00:12 +0000 (22:00 +0200)]
patch 8.2.1676: compiler warnings for function typecast

Problem:    Compiler warnings for function typecast.
Solution:   Add an intermediate cast to "void *".

4 years agopatch 8.2.1675: MinGW: testdir makefile deletes non-existing file v8.2.1675
Bram Moolenaar [Sun, 13 Sep 2020 19:01:22 +0000 (21:01 +0200)]
patch 8.2.1675: MinGW: testdir makefile deletes non-existing file

Problem:    MinGW: testdir makefile deletes non-existing file.
Solution:   Use another way to delete the output file if it already exists.
            (Michael Soyka)

4 years agopatch 8.2.1674: Vim9: internal error when using variable that was not set v8.2.1674
Bram Moolenaar [Sun, 13 Sep 2020 16:57:47 +0000 (18:57 +0200)]
patch 8.2.1674: Vim9: internal error when using variable that was not set

Problem:    Vim9: internal error when using variable that was not set.
Solution:   Give a meaningful error. (closes #6937)

4 years agopatch 8.2.1673: complete_info() selected index has an invalid value v8.2.1673
Bram Moolenaar [Sat, 12 Sep 2020 20:52:57 +0000 (22:52 +0200)]
patch 8.2.1673: complete_info() selected index has an invalid value

Problem:    complete_info() selected index has an invalid value. (Ben Jackson)
Solution:   Set the index when there is only one match. (closes #6945)
            Add test for complete_info().

4 years agopatch 8.2.1672: v_lock is used when it is not initialized v8.2.1672
Bram Moolenaar [Sat, 12 Sep 2020 20:10:00 +0000 (22:10 +0200)]
patch 8.2.1672: v_lock is used when it is not initialized

Problem:    v_lock is used when it is not initialized. (Yegappan Lakshmanan)
Solution:   Initialize the typval in eval1().

4 years agopatch 8.2.1671: Vim9: stray error for missing white space v8.2.1671
Bram Moolenaar [Sat, 12 Sep 2020 19:27:03 +0000 (21:27 +0200)]
patch 8.2.1671: Vim9: stray error for missing white space

Problem:    Vim9: stray error for missing white space.
Solution:   Do not skip over white space after member. (closes #6817)

4 years agopatch 8.2.1670: a couple of gcc compiler warnings v8.2.1670
Bram Moolenaar [Sat, 12 Sep 2020 19:04:23 +0000 (21:04 +0200)]
patch 8.2.1670: a couple of gcc compiler warnings

Problem:    A couple of gcc compiler warnings.
Solution:   Initialize local variables. (Dominique Pellé, closes #6944)

4 years agopatch 8.2.1669: Vim9: memory leak when storing a value fails v8.2.1669
Bram Moolenaar [Sat, 12 Sep 2020 17:51:42 +0000 (19:51 +0200)]
patch 8.2.1669: Vim9: memory leak when storing a value fails

Problem:    Vim9: memory leak when storing a value fails.
Solution:   Free the value when not storing it.

4 years agopatch 8.2.1668: Vim9: not accepting 0 or 1 as bool when type is any v8.2.1668
Bram Moolenaar [Sat, 12 Sep 2020 17:11:23 +0000 (19:11 +0200)]
patch 8.2.1668: Vim9: not accepting 0 or 1 as bool when type is any

Problem:    Vim9: not accepting 0 or 1 as bool when type is any.
Solution:   Convert the type with the CHECKTYPE instruction. (closes #6913)

4 years agopatch 8.2.1667: local function name cannot shadow a global function name v8.2.1667
Bram Moolenaar [Sat, 12 Sep 2020 16:32:34 +0000 (18:32 +0200)]
patch 8.2.1667: local function name cannot shadow a global function name

Problem:    Local function name cannot shadow a global function name.
Solution:   Ignore global functions when checking a script-local or scoped
            function name. (closes #6926)

4 years agopatch 8.2.1666: the initial value of 'backupskip' can have duplicate items v8.2.1666
Bram Moolenaar [Sat, 12 Sep 2020 12:53:53 +0000 (14:53 +0200)]
patch 8.2.1666: the initial value of 'backupskip' can have duplicate items

Problem:    The initial value of 'backupskip' can have duplicate items.
Solution:   Remove duplicates, like when it is set later. (Tom Ryder,
            closes #6940)

4 years agopatch 8.2.1665: cannot do fuzzy string matching v8.2.1665
Bram Moolenaar [Fri, 11 Sep 2020 20:25:15 +0000 (22:25 +0200)]
patch 8.2.1665: cannot do fuzzy string matching

Problem:    Cannot do fuzzy string matching.
Solution:   Add matchfuzzy(). (Yegappan Lakshmanan, closes #6932)

4 years agopatch 8.2.1664: memory leak when using :mkview with a terminal buffer v8.2.1664
Bram Moolenaar [Fri, 11 Sep 2020 20:10:22 +0000 (22:10 +0200)]
patch 8.2.1664: memory leak when using :mkview with a terminal buffer

Problem:    Memory leak when using :mkview with a terminal buffer.
Solution:   Don't use a hastab for :mkview. (Rob Pilling, closes #6935)

4 years agopatch 8.2.1663: options window entries cannot be translated v8.2.1663
Bram Moolenaar [Fri, 11 Sep 2020 18:51:26 +0000 (20:51 +0200)]
patch 8.2.1663: options window entries cannot be translated

Problem:    Options window entries cannot be translated.
Solution:   Use AddOption() for all explanations. (closes #6800)

4 years agopatch 8.2.1662: :mksession does not restore shared terminal buffer properly v8.2.1662
Bram Moolenaar [Fri, 11 Sep 2020 18:36:36 +0000 (20:36 +0200)]
patch 8.2.1662: :mksession does not restore shared terminal buffer properly

Problem:    :mksession does not restore shared terminal buffer properly.
Solution:   Keep a hashtab with terminal buffers. (Rob Pilling, closes #6930)

4 years agopatch 8.2.1661: cannot connect to 127.0.0.1 for host with only IPv6 addresses v8.2.1661
Bram Moolenaar [Fri, 11 Sep 2020 17:28:19 +0000 (19:28 +0200)]
patch 8.2.1661: cannot connect to 127.0.0.1 for host with only IPv6 addresses

Problem:    Cannot connect to 127.0.0.1 for host with only IPv6 addresses.
Solution:   pass AI_V4MAPPED flag to getaddrinfo. (Filipe Brandenburger,
            closes #6931)

4 years agopatch 8.2.1660: assert functions require passing expected as first argument v8.2.1660
Bram Moolenaar [Fri, 11 Sep 2020 17:09:48 +0000 (19:09 +0200)]
patch 8.2.1660: assert functions require passing expected as first argument

Problem:    Assert functions require passing expected result as the first
            argument, which isn't obvious.
Solution:   Use a method, as in "runtest()->assert_equal(expected)".

4 years agopatch 8.2.1659: spellfile code not completely tested v8.2.1659
Bram Moolenaar [Fri, 11 Sep 2020 16:11:50 +0000 (18:11 +0200)]
patch 8.2.1659: spellfile code not completely tested

Problem:    Spellfile code not completely tested.
Solution:   Add a few more test cases. (Yegappan Lakshmanan, closes #6929)

4 years agopatch 8.2.1658: expand('<stack>') has trailing ".." v8.2.1658
Bram Moolenaar [Fri, 11 Sep 2020 15:59:23 +0000 (17:59 +0200)]
patch 8.2.1658: expand('<stack>') has trailing ".."

Problem:    Expand('<stack>') has trailing "..".
Solution:   Remove the "..". (closes #6927)

4 years agopatch 8.2.1657: Vim9: no proper error for nested ":def!" v8.2.1657
Bram Moolenaar [Thu, 10 Sep 2020 20:28:01 +0000 (22:28 +0200)]
patch 8.2.1657: Vim9: no proper error for nested ":def!"

Problem:    Vim9: no proper error for nested ":def!".
Solution:   Check for "!". (closes #6920)

4 years agopatch 8.2.1656: Vim9: callstack wrong if :def function calls :def function v8.2.1656
Bram Moolenaar [Thu, 10 Sep 2020 20:05:08 +0000 (22:05 +0200)]
patch 8.2.1656: Vim9: callstack wrong if :def function calls :def function

Problem:    Vim9: callstack wrong if :def function calls :def function.
Solution:   Set the line number before calling. (closes #6914)

4 years agopatch 8.2.1655: cannot build with Strawberry Perl 5.32.0 v8.2.1655
Bram Moolenaar [Thu, 10 Sep 2020 19:36:11 +0000 (21:36 +0200)]
patch 8.2.1655: cannot build with Strawberry Perl 5.32.0

Problem:    Cannot build with Strawberry Perl 5.32.0.
Solution:   Use Perl_sv_2pvbyte_flags. (closes #6921)

4 years agopatch 8.2.1654: when job writes to hidden buffer current window is wrong v8.2.1654
Bram Moolenaar [Thu, 10 Sep 2020 19:25:45 +0000 (21:25 +0200)]
patch 8.2.1654: when job writes to hidden buffer current window is wrong

Problem:    When job writes to hidden buffer current window has display
            errors.  (Johnny McArthur)
Solution:   Use aucmd_prepbuf() instead of switch_to_win_for_buf().
            (closes #6925)

4 years agopatch 8.2.1653: expand('<stack>') does not include the final line number v8.2.1653
Bram Moolenaar [Thu, 10 Sep 2020 17:25:05 +0000 (19:25 +0200)]
patch 8.2.1653: expand('<stack>') does not include the final line number

Problem:    Expand('<stack>') does not include the final line number.
Solution:   Add the line nuber. (closes #6927)

4 years agopatch 8.2.1652: cannot translate lines in the options window v8.2.1652
Bram Moolenaar [Thu, 10 Sep 2020 12:25:25 +0000 (14:25 +0200)]
patch 8.2.1652: cannot translate lines in the options window

Problem:    Cannot translate lines in the options window.
Solution:   Use the AddOption() function to split descriptions where indicated
            by a line break. (issue #6800)

4 years agopatch 8.2.1651: spellfile code not completely tested v8.2.1651
Bram Moolenaar [Wed, 9 Sep 2020 20:43:19 +0000 (22:43 +0200)]
patch 8.2.1651: spellfile code not completely tested

Problem:    Spellfile code not completely tested.
Solution:   Add a few more test cases. (Yegappan Lakshmanan, closes #6918)

4 years agopatch 8.2.1650: Vim9: result of && and || expression is not bool in script v8.2.1650
Bram Moolenaar [Wed, 9 Sep 2020 20:27:58 +0000 (22:27 +0200)]
patch 8.2.1650: Vim9: result of && and || expression is not bool in script

Problem:    Vim9: result of && and || expression cannot be assigned to a bool
            at the script level.
Solution:   Add the VAR_BOOL_OK flag.  Convert to bool when needed.

4 years agopatch 8.2.1649: GTK3: using old file chooser v8.2.1649
Bram Moolenaar [Wed, 9 Sep 2020 18:58:55 +0000 (20:58 +0200)]
patch 8.2.1649: GTK3: using old file chooser

Problem:    GTK3: using old file chooser.
Solution:   Use native file chooser on GTK 3.20 and above. (Yogeshwar
            Velingker, closes #6909)

4 years agopatch 8.2.1648: Amiga: no common build file for Amiga (-like) systems v8.2.1648
Bram Moolenaar [Wed, 9 Sep 2020 18:41:40 +0000 (20:41 +0200)]
patch 8.2.1648: Amiga: no common build file for Amiga (-like) systems

Problem:    Amiga: no common build file for Amiga (-like) systems.
Solution:   Turn Make_morph.mak into Make_ami.mak. (Ola Söder, closes #6805)

4 years agopatch 8.2.1647: Vim9: result of expression with && and || is not a bool v8.2.1647
Bram Moolenaar [Wed, 9 Sep 2020 18:03:46 +0000 (20:03 +0200)]
patch 8.2.1647: Vim9: result of expression with && and || is not a bool

Problem:    Vim9: result of expression with && and || cannot be assigned to a
            bool variable.
Solution:   Add the TTFLAG_BOOL_OK flag and convert the value if needed.

4 years agopatch 8.2.1646: Amiga: Unnecessary #include v8.2.1646
Bram Moolenaar [Wed, 9 Sep 2020 17:25:09 +0000 (19:25 +0200)]
patch 8.2.1646: Amiga: Unnecessary #include

Problem:    Amiga: Unnecessary #include.
Solution:   Remove the #include. (Ola Söder, closes #6908)

4 years agopatch 8.2.1645: GTK3: icons become broken images when resized v8.2.1645
Bram Moolenaar [Wed, 9 Sep 2020 17:05:13 +0000 (19:05 +0200)]
patch 8.2.1645: GTK3: icons become broken images when resized

Problem:    GTK3: icons become broken images when resized.
Solution:   Use gtk_image_new_from_icon_name(). (closes #6916)
            Fix compiler warnings.

4 years agopatch 8.2.1644: Vim9: cannot assign 1 and 0 to bool at script level v8.2.1644
Bram Moolenaar [Wed, 9 Sep 2020 16:54:42 +0000 (18:54 +0200)]
patch 8.2.1644: Vim9: cannot assign 1 and 0 to bool at script level

Problem:    Vim9: cannot assign 1 and 0 to bool at script level.
Solution:   Add the TTFLAG_BOOL_OK flag to the type. Fix name of test
            function.

4 years agopatch 8.2.1643: Vim9: :defcompile compiles dead functions v8.2.1643
Bram Moolenaar [Wed, 9 Sep 2020 15:08:51 +0000 (17:08 +0200)]
patch 8.2.1643: Vim9: :defcompile compiles dead functions

Problem:    Vim9: :defcompile compiles dead functions.
Solution:   Skip over dead functions.

4 years agopatch 8.2.1642: otions test fails v8.2.1642
Bram Moolenaar [Wed, 9 Sep 2020 13:10:52 +0000 (15:10 +0200)]
patch 8.2.1642: otions test fails

Problem:    Otions test fails.
Solution:   Correct call to OptionG().

4 years agopatch 8.2.1641: Vim9: cannot use 0 or 1 where a bool is expected v8.2.1641
Bram Moolenaar [Wed, 9 Sep 2020 12:55:31 +0000 (14:55 +0200)]
patch 8.2.1641: Vim9: cannot use 0 or 1 where a bool is expected

Problem:    Vim9: cannot use 0 or 1 where a bool is expected.
Solution:   Allow using 0 and 1 for a bool type. (closes #6903)

4 years agopatch 8.2.1640: Amiga: missing header for getgrgid() v8.2.1640
Bram Moolenaar [Wed, 9 Sep 2020 11:01:27 +0000 (13:01 +0200)]
patch 8.2.1640: Amiga: missing header for getgrgid()

Problem:    Amiga: missing header for getgrgid().
Solution:   Add the grp.h header. (Ola Söder, closes #6906)

4 years agopatch 8.2.1639: options window cannot be translated v8.2.1639
Bram Moolenaar [Wed, 9 Sep 2020 10:56:30 +0000 (12:56 +0200)]
patch 8.2.1639: options window cannot be translated

Problem:    Options window cannot be translated.
Solution:   Get the translation for "local to" texts once and use them in many
            places. Fix that 'whichwrap' is not a local option. (issue #6800)

4 years agopatch 8.2.1638: leaking memory when popup filter function can't be called v8.2.1638
Bram Moolenaar [Tue, 8 Sep 2020 20:55:26 +0000 (22:55 +0200)]
patch 8.2.1638: leaking memory when popup filter function can't be called

Problem:    Leaking memory when popup filter function can't be called.
Solution:   Don't return too soon.

4 years agopatch 8.2.1637: Vim9: :put ={expr} does not work inside :def function v8.2.1637
Bram Moolenaar [Tue, 8 Sep 2020 20:45:35 +0000 (22:45 +0200)]
patch 8.2.1637: Vim9: :put ={expr} does not work inside :def function

Problem:    Vim9: :put ={expr} does not work inside :def function.
Solution:   Add ISN_PUT. (closes #6397)

4 years agopatch 8.2.1636: get stuck if a popup filter causes an error v8.2.1636
Bram Moolenaar [Tue, 8 Sep 2020 20:06:44 +0000 (22:06 +0200)]
patch 8.2.1636: get stuck if a popup filter causes an error

Problem:    Get stuck if a popup filter causes an error.
Solution:   Check whether the function can be called and does not cause an
            error.  (closes #6902)

4 years agopatch 8.2.1635: no digraph for 0x2022 BULLET v8.2.1635
Bram Moolenaar [Tue, 8 Sep 2020 17:06:30 +0000 (19:06 +0200)]
patch 8.2.1635: no digraph for 0x2022 BULLET

Problem:    No digraph for 0x2022 BULLET.
Solution:   Use "oo". (Hans Ginzel, closes #6904)

4 years agoUpdate runtime files.
Bram Moolenaar [Mon, 7 Sep 2020 20:18:52 +0000 (22:18 +0200)]
Update runtime files.

4 years agopatch 8.2.1634: loop to handle keys for the command line is too long v8.2.1634
Bram Moolenaar [Mon, 7 Sep 2020 20:05:28 +0000 (22:05 +0200)]
patch 8.2.1634: loop to handle keys for the command line is too long

Problem:    Loop to handle keys for the command line is too long.
Solution:   Move a few more parts to separate functions. (Yegappan Lakshmanan,
            closes #6895)

4 years agopatch 8.2.1633: some error messages are internal but do not use iemsg() v8.2.1633
Bram Moolenaar [Mon, 7 Sep 2020 16:53:21 +0000 (18:53 +0200)]
patch 8.2.1633: some error messages are internal but do not use iemsg()

Problem:    Some error messages are internal but do not use iemsg().
Solution:   Use iemsg(). (Dominique Pellé, closes #6894)

4 years agopatch 8.2.1632: not checking the context of test_fails() v8.2.1632
Bram Moolenaar [Sun, 6 Sep 2020 20:26:57 +0000 (22:26 +0200)]
patch 8.2.1632: not checking the context of test_fails()

Problem:    Not checking the context of test_fails().
Solution:   Add the line number and context arguments.  Give error if
            assert_fails() argument types are wrong.

4 years agopatch 8.2.1631: test_fails() does not check the context of the line number v8.2.1631
Bram Moolenaar [Sun, 6 Sep 2020 19:47:48 +0000 (21:47 +0200)]
patch 8.2.1631: test_fails() does not check the context of the line number

Problem:    test_fails() does not check the context of the line number.
Solution:   Use another argument to specify the context of the line number.

4 years agopatch 8.2.1630: terminal test fails v8.2.1630
Bram Moolenaar [Sun, 6 Sep 2020 19:13:00 +0000 (21:13 +0200)]
patch 8.2.1630: terminal test fails

Problem:    Terminal test fails.
Solution:   Correct argument to term_start().  Correct error number.

4 years agopatch 8.2.1629: test fails without terminal feature v8.2.1629
Bram Moolenaar [Sun, 6 Sep 2020 18:06:59 +0000 (20:06 +0200)]
patch 8.2.1629: test fails without terminal feature

Problem:    Test fails without terminal feature.
Solution:   Check for terminal feature.

4 years agopatch 8.2.1628: Vim9: cannot pass "true" to timer_paused() v8.2.1628
Bram Moolenaar [Sun, 6 Sep 2020 16:39:38 +0000 (18:39 +0200)]
patch 8.2.1628: Vim9: cannot pass "true" to timer_paused()

Problem:    Vim9: cannot pass "true" to timer_paused().
Solution:   Use tv_get_bool(). (closes #6891)

4 years agopatch 8.2.1627: Vim9: cannot pass "true" to submatch/term_gettty/term_start v8.2.1627
Bram Moolenaar [Sun, 6 Sep 2020 16:22:53 +0000 (18:22 +0200)]
patch 8.2.1627: Vim9: cannot pass "true" to submatch/term_gettty/term_start

Problem:    Vim9: cannot pass "true" to submatch(), term_gettty() and
            term_start()
Solution:   Use tv_get_bool_chk(). (closes #6888, closes #6890, closes #6889)

4 years agopatch 8.2.1626: test for strchars() fails with different error number v8.2.1626
Bram Moolenaar [Sun, 6 Sep 2020 15:13:44 +0000 (17:13 +0200)]
patch 8.2.1626: test for strchars() fails with different error number

Problem:    Test for strchars() fails with different error number.
Solution:   Adjust the error number.

4 years agopatch 8.2.1625: compiler warning for use of fptr_T v8.2.1625
Bram Moolenaar [Sun, 6 Sep 2020 15:09:12 +0000 (17:09 +0200)]
patch 8.2.1625: compiler warning for use of fptr_T

Problem:    Compiler warning for use of fptr_T.
Solution:   Make the type less strict.

4 years agopatch 8.2.1624: Vim9: cannot pass "true" to split(), str2nr() and strchars() v8.2.1624
Bram Moolenaar [Sun, 6 Sep 2020 14:09:04 +0000 (16:09 +0200)]
patch 8.2.1624: Vim9: cannot pass "true" to split(), str2nr() and strchars()

Problem:    Vim9: cannot pass "true" to split(), str2nr() and strchars().
Solution:   Use tv_get_bool_chk(). (closes #6884, closes #6885, closes #6886)

4 years agopatch 8.2.1623: Vim9: using :call where it is not needed v8.2.1623
Bram Moolenaar [Sun, 6 Sep 2020 13:58:36 +0000 (15:58 +0200)]
patch 8.2.1623: Vim9: using :call where it is not needed

Problem:    Vim9: using :call where it is not needed.
Solution:   Remove :call. (closes #6892)

4 years agopatch 8.2.1622: loop to handle keys for the command line is too long v8.2.1622
Bram Moolenaar [Sun, 6 Sep 2020 13:54:00 +0000 (15:54 +0200)]
patch 8.2.1622: loop to handle keys for the command line is too long

Problem:    Loop to handle keys for the command line is too long.
Solution:   Move code to functions. (Yegappan Lakshmanan, closes #6880)

4 years agopatch 8.2.1621: crash when using submatch(0, 1) in substitute() v8.2.1621
Bram Moolenaar [Sun, 6 Sep 2020 13:14:45 +0000 (15:14 +0200)]
patch 8.2.1621: crash when using submatch(0, 1) in substitute()

Problem:    Crash when using submatch(0, 1) in substitute().
Solution:   Increment reference count. (closes #6887)

4 years agopatch 8.2.1620: searchcount() test fails v8.2.1620
Bram Moolenaar [Sat, 5 Sep 2020 21:16:00 +0000 (23:16 +0200)]
patch 8.2.1620: searchcount() test fails

Problem:    searchcount() test fails.
Solution:   Restore default flag value.

4 years agopatch 8.2.1619: Vim9: cannot pass "true" to spellsuggest() v8.2.1619
Bram Moolenaar [Sat, 5 Sep 2020 20:45:55 +0000 (22:45 +0200)]
patch 8.2.1619: Vim9: cannot pass "true" to spellsuggest()

Problem:    Vim9: cannot pass "true" to spellsuggest().
Solution:   Use tv_get_bool_chk(). (closes #6883)

4 years agopatch 8.2.1618: Vim9: cannot pass "true" to setloclist() v8.2.1618
Bram Moolenaar [Sat, 5 Sep 2020 20:37:39 +0000 (22:37 +0200)]
patch 8.2.1618: Vim9: cannot pass "true" to setloclist()

Problem:    Vim9: cannot pass "true" to setloclist().
Solution:   Use dict_get_bool(). (closes #6882)

4 years agopatch 8.2.1617: Vim9: cannot pass "true" to win_splitmove() v8.2.1617
Bram Moolenaar [Sat, 5 Sep 2020 19:57:53 +0000 (21:57 +0200)]
patch 8.2.1617: Vim9: cannot pass "true" to win_splitmove()

Problem:    Vim9: cannot pass "true" to win_splitmove().
Solution:   Use dict_get_bool(). (closes #6862)  Alphabetize test functions.

4 years agopatch 8.2.1616: Vim9: cannot pass "true" to synID() v8.2.1616
Bram Moolenaar [Sat, 5 Sep 2020 19:41:56 +0000 (21:41 +0200)]
patch 8.2.1616: Vim9: cannot pass "true" to synID()

Problem:    Vim9: cannot pass "true" to synID().
Solution:   Use tv_get_bool_chk(). (closes #6860)

4 years agopatch 8.2.1615: Vim9: cannot pass "true" to searchdecl() v8.2.1615
Bram Moolenaar [Sat, 5 Sep 2020 19:35:16 +0000 (21:35 +0200)]
patch 8.2.1615: Vim9: cannot pass "true" to searchdecl()

Problem:    Vim9: cannot pass "true" to searchdecl().
Solution:   use tv_get_bool_chk(). (closes #6881)

4 years agopatch 8.2.1614: Vim9: cannot pass "true" to searchcount() v8.2.1614
Bram Moolenaar [Sat, 5 Sep 2020 19:21:16 +0000 (21:21 +0200)]
patch 8.2.1614: Vim9: cannot pass "true" to searchcount()

Problem:    Vim9: cannot pass "true" to searchcount().
Solution:   Use tv_get_bool_chk(). (closes #6854)

4 years agopatch 8.2.1613: Vim9: cannot pass "true" to prop_type_add() v8.2.1613
Bram Moolenaar [Sat, 5 Sep 2020 19:00:00 +0000 (21:00 +0200)]
patch 8.2.1613: Vim9: cannot pass "true" to prop_type_add()

Problem:    Vim9: cannot pass "true" to prop_type_add().
Solution:   Use tv_get_bool(). (closes #6850)

4 years agopatch 8.2.1612: Vim9: cannot pass "true" to prop_remove() v8.2.1612
Bram Moolenaar [Sat, 5 Sep 2020 18:50:49 +0000 (20:50 +0200)]
patch 8.2.1612: Vim9: cannot pass "true" to prop_remove()

Problem:    Vim9: cannot pass "true" to prop_remove().
Solution:   Use dict_get_bool(). (closes #6853)

4 years agopatch 8.2.1611: Vim9: cannot pass "true" to nr2char() v8.2.1611
Bram Moolenaar [Sat, 5 Sep 2020 18:29:41 +0000 (20:29 +0200)]
patch 8.2.1611: Vim9: cannot pass "true" to nr2char()

Problem:    Vim9: cannot pass "true" to nr2char().
Solution:   use tv_get_bool_chk(). (closes #6878)

4 years agopatch 8.2.1610: Vim9: cannot pass "true" to list2str() and str2list() v8.2.1610
Bram Moolenaar [Sat, 5 Sep 2020 18:16:57 +0000 (20:16 +0200)]
patch 8.2.1610: Vim9: cannot pass "true" to list2str() and str2list()

Problem:    Vim9: cannot pass "true" to list2str() and str2list().
Solution:   Use tv_get_bool_chk(). (closes #6877)

4 years agopatch 8.2.1609: Vim9: test fails when build without +channel v8.2.1609
Bram Moolenaar [Sat, 5 Sep 2020 18:06:33 +0000 (20:06 +0200)]
patch 8.2.1609: Vim9: test fails when build without +channel

Problem:    Vim9: test fails when build without +channel.
Solution:   Add check for +channel. (closes #6879)

4 years agopatch 8.2.1608: Vim9: getchar() test fails with GUI v8.2.1608
Bram Moolenaar [Sat, 5 Sep 2020 17:59:39 +0000 (19:59 +0200)]
patch 8.2.1608: Vim9: getchar() test fails with GUI

Problem:    Vim9: getchar() test fails with GUI.
Solution:   Avoid that getchar(0) gets stuck on K_IGNORE.

4 years agopatch 8.2.1607: Vim9: getchar() test fails on MS-Windows v8.2.1607
Bram Moolenaar [Sat, 5 Sep 2020 16:48:57 +0000 (18:48 +0200)]
patch 8.2.1607: Vim9: getchar() test fails on MS-Windows

Problem:    Vim9: getchar() test fails on MS-Windows.
Solution:   First consume any available input.

4 years agopatch 8.2.1606: Vim9: cannot use "true" with has() v8.2.1606
Bram Moolenaar [Sat, 5 Sep 2020 16:45:29 +0000 (18:45 +0200)]
patch 8.2.1606: Vim9: cannot use "true" with has()

Problem:    Vim9: cannot use "true" with has().
Solution:   Use tv_get_bool(). (closes #6876)

4 years agopatch 8.2.1605: default maintainer on github is wrong v8.2.1605
Bram Moolenaar [Sat, 5 Sep 2020 16:40:44 +0000 (18:40 +0200)]
patch 8.2.1605: default maintainer on github is wrong

Problem:    Defyyyyyyyyyyyyyyyyyyyyyyyub is wrong.
Solution:   Use Bram's account.

4 years agopatch 8.2.1604: Vim9: cannot use "true" with getcompletion() v8.2.1604
Bram Moolenaar [Sat, 5 Sep 2020 16:31:33 +0000 (18:31 +0200)]
patch 8.2.1604: Vim9: cannot use "true" with getcompletion()

Problem:    Vim9: cannot use "true" with getcompletion().
Solution:   use tv_get_bool_chk(). (closes #6875)

4 years agopatch 8.2.1603: Vim9: cannot use "true" with getchar() v8.2.1603
Bram Moolenaar [Sat, 5 Sep 2020 15:51:23 +0000 (17:51 +0200)]
patch 8.2.1603: Vim9: cannot use "true" with getchar()

Problem:    Vim9: cannot use "true" with getchar().
Solution:   use tv_get_bool_chk(). (closes #6874)

4 years agopatch 8.2.1602: Vim9: cannot use 'true" with getbufinfo() v8.2.1602
Bram Moolenaar [Sat, 5 Sep 2020 15:37:07 +0000 (17:37 +0200)]
patch 8.2.1602: Vim9: cannot use 'true" with getbufinfo()

Problem:    Vim9: cannot use 'true" with getbufinfo().
Solution:   Use dict_get_bool(). (closes #6873)

4 years agopatch 8.2.1601: Vim9: cannot use 'true" with garbagecollect() v8.2.1601
Bram Moolenaar [Sat, 5 Sep 2020 15:30:44 +0000 (17:30 +0200)]
patch 8.2.1601: Vim9: cannot use 'true" with garbagecollect()

Problem:    Vim9: cannot use 'true" with garbagecollect().
Solution:   Use tv_get_bool(). (closes #6871)

4 years agopatch 8.2.1600: Vim9: cannot use "true" with deepcopy() v8.2.1600
Bram Moolenaar [Sat, 5 Sep 2020 15:18:28 +0000 (17:18 +0200)]
patch 8.2.1600: Vim9: cannot use "true" with deepcopy()

Problem:    Vim9: cannot use "true" with deepcopy().
Solution:   Use tv_get_bool_chk(). (closes #6867)

4 years agopatch 8.2.1599: missing line end when skipping a long line with :cgetfile v8.2.1599
Bram Moolenaar [Sat, 5 Sep 2020 15:03:40 +0000 (17:03 +0200)]
patch 8.2.1599: missing line end when skipping a long line with :cgetfile

Problem:    Missing line end when skipping a long line with :cgetfile.
Solution:   Fix off-by-one error. (closes #6870)

4 years agopatch 8.2.1598: starting a hidden terminal resizes the current window v8.2.1598
Bram Moolenaar [Sat, 5 Sep 2020 14:08:49 +0000 (16:08 +0200)]
patch 8.2.1598: starting a hidden terminal resizes the current window

Problem:    Starting a hidden terminal resizes the current window.
Solution:   Do not resize the current window for a hidden terminal.
            (closes #6872)

4 years agopatch 8.2.1597: the channel source file is too big v8.2.1597
Bram Moolenaar [Sat, 5 Sep 2020 13:48:51 +0000 (15:48 +0200)]
patch 8.2.1597: the channel source file is too big

Problem:    The channel source file is too big.
Solution:   Move job related code to a new source file.

4 years agopatch 8.2.1596: using win_screenpos('.') in tests works but is wrong v8.2.1596
Bram Moolenaar [Sat, 5 Sep 2020 13:05:30 +0000 (15:05 +0200)]
patch 8.2.1596: using win_screenpos('.') in tests works but is wrong

Problem:    Using win_screenpos('.') in tests works but is wrong.
Solution:   Use win_screenpos(0).

4 years agopatch 8.2.1595: cannot easily see what Vim sends to the terminal v8.2.1595
Bram Moolenaar [Sat, 5 Sep 2020 12:27:24 +0000 (14:27 +0200)]
patch 8.2.1595: cannot easily see what Vim sends to the terminal

Problem:    Cannot easily see what Vim sends to the terminal.
Solution:   Write output to the channel log if it contains terminal control
            sequences.  Avoid warnings for tputs() argument.

4 years agopatch 8.2.1594: pull requests on github do not notify a maintainer v8.2.1594
Bram Moolenaar [Sat, 5 Sep 2020 11:48:58 +0000 (13:48 +0200)]
patch 8.2.1594: pull requests on github do not notify a maintainer

Problem:    Pull requests on github do not notify a maintainer.
Solution:   Add a CODEOWNERS file with a few initial entries.

4 years agopatch 8.2.1593: tests do not check the error number properly v8.2.1593
Bram Moolenaar [Fri, 4 Sep 2020 19:18:46 +0000 (21:18 +0200)]
patch 8.2.1593: tests do not check the error number properly

Problem:    Tests do not check the error number properly.0
Solution:   Add a colon after the error number. (closes #6869)

4 years agopatch 8.2.1592: Vim9: passing "true" to char2nr() fails v8.2.1592
Bram Moolenaar [Fri, 4 Sep 2020 17:50:57 +0000 (19:50 +0200)]
patch 8.2.1592: Vim9: passing "true" to char2nr() fails

Problem:    Vim9: passing "true" to char2nr() fails.
Solution:   Use tv_get_bool_chk(). (closes #6865)

4 years agopatch 8.2.1591: using winheight('.') in tests works but is wrong v8.2.1591
Bram Moolenaar [Fri, 4 Sep 2020 16:38:06 +0000 (18:38 +0200)]
patch 8.2.1591: using winheight('.') in tests works but is wrong

Problem:    Using winheight('.') in tests works but is wrong.
Solution:   Use winheight(0). (issue #6863)

4 years agopatch 8.2.1590: Vim9: bufnr() doesn't take "true" argument v8.2.1590
Bram Moolenaar [Fri, 4 Sep 2020 16:35:26 +0000 (18:35 +0200)]
patch 8.2.1590: Vim9: bufnr() doesn't take "true" argument

Problem:    Vim9: bufnr() doesn't take "true" argument.
Solution:   use tv_get_bool_chk(). (closes #6863)

4 years agopatch 8.2.1589: term_start() options for size are overruled by 'termwinsize' v8.2.1589
Bram Moolenaar [Fri, 4 Sep 2020 16:34:09 +0000 (18:34 +0200)]
patch 8.2.1589: term_start() options for size are overruled by 'termwinsize'

Problem:    Term_start() options for size are overruled by 'termwinsize'.
            (Sergey Vlasov)
Solution:   Set 'termwinsize' to the specified size.

4 years agopatch 8.2.1588: cannot read back the prompt of a prompt buffer v8.2.1588
Bram Moolenaar [Fri, 4 Sep 2020 14:35:35 +0000 (16:35 +0200)]
patch 8.2.1588: cannot read back the prompt of a prompt buffer

Problem:    Cannot read back the prompt of a prompt buffer.
Solution:   Add prompt_getprompt(). (Ben Jackson, closes #6851)

4 years agopatch 8.2.1587: loop for handling keys for the command line is too long v8.2.1587
Bram Moolenaar [Fri, 4 Sep 2020 13:37:31 +0000 (15:37 +0200)]
patch 8.2.1587: loop for handling keys for the command line is too long

Problem:    Loop for handling keys for the command line is too long.
Solution:   Move wild menu handling to separate functions. (Yegappan
            Lakshmanan, closes #6856)