]> granicus.if.org Git - vim/log
vim
4 years agopatch 8.2.1559: s390x tests work again v8.2.1559
Bram Moolenaar [Tue, 1 Sep 2020 15:50:51 +0000 (17:50 +0200)]
patch 8.2.1559: s390x tests work again

Problem:    s390x tests work again.
Solution:   re-enable s390x tests. (James McCoy, closes #6829)

4 years agopatch 8.2.1558: signs test fails v8.2.1558
Bram Moolenaar [Mon, 31 Aug 2020 21:18:00 +0000 (23:18 +0200)]
patch 8.2.1558: signs test fails

Problem:    Signs test fails.
Solution:   Add missing change to sign.c.

4 years agopatch 8.2.1557: crash in :vimgrep when started as "vim -n" v8.2.1557
Bram Moolenaar [Mon, 31 Aug 2020 20:16:08 +0000 (22:16 +0200)]
patch 8.2.1557: crash in :vimgrep when started as "vim -n"

Problem:    Crash in :vimgrep when started as "vim -n". (Raul Segura)
Solution:   Check mfp pointer. (Yegappan Lakshmanan, closes #6827)

4 years agopatch 8.2.1556: cursorline highlighting always overrules sign highlighting v8.2.1556
Bram Moolenaar [Mon, 31 Aug 2020 20:00:05 +0000 (22:00 +0200)]
patch 8.2.1556: cursorline highlighting always overrules sign highlighting

Problem:    Cursorline highlighting always overrules sign highlighting.
Solution:   Combine the highlighting, use the priority to decide how.
            (closes #6812)

4 years agopatch 8.2.1555: not all tests are executed on Github Actions v8.2.1555
Bram Moolenaar [Mon, 31 Aug 2020 19:30:32 +0000 (21:30 +0200)]
patch 8.2.1555: not all tests are executed on Github Actions

Problem:    Not all tests are executed on Github Actions.
Solution:   Copy "src" to "src2" earlier. Recognize "src2" in a couple more
            places.  Add two tests to the list of flaky tests. (Ken Takata,
            closes #6798)

4 years agopatch 8.2.1554: crash in normal test v8.2.1554
Bram Moolenaar [Mon, 31 Aug 2020 19:22:40 +0000 (21:22 +0200)]
patch 8.2.1554: crash in normal test

Problem:    Crash in normal test.
Solution:   Skip adjusting marks if there are no folds.

4 years agopatch 8.2.1553: crash in edit test v8.2.1553
Bram Moolenaar [Mon, 31 Aug 2020 19:15:02 +0000 (21:15 +0200)]
patch 8.2.1553: crash in edit test

Problem:    Crash in edit test.
Solution:   Avoid using invalid pointer.

4 years agopatch 8.2.1552: warnings from asan with clang-11 v8.2.1552
Bram Moolenaar [Mon, 31 Aug 2020 17:58:13 +0000 (19:58 +0200)]
patch 8.2.1552: warnings from asan with clang-11

Problem:    Warnings from asan with clang-11. (James McCoy)
Solution:   Avoid using a NULL pointer. (issue #6811)

4 years agopatch 8.2.1551: Vim9: error for argument type does not mention the number v8.2.1551
Bram Moolenaar [Sun, 30 Aug 2020 21:24:20 +0000 (23:24 +0200)]
patch 8.2.1551: Vim9: error for argument type does not mention the number

Problem:    Vim9: error for argument type does not mention the number.
Solution:   Pass the argument number to where the error is given.

4 years agopatch 8.2.1550: Vim9: bufname('%') gives an error v8.2.1550
Bram Moolenaar [Sun, 30 Aug 2020 19:26:57 +0000 (21:26 +0200)]
patch 8.2.1550: Vim9: bufname('%') gives an error

Problem:    Vim9: bufname('%') gives an error.
Solution:   Only give an error for wrong argument type. (closes #6807)

4 years agopatch 8.2.1549: "r" fails if 'esckeys' is off and modifyOtherKeys is used v8.2.1549
Bram Moolenaar [Sun, 30 Aug 2020 18:46:38 +0000 (20:46 +0200)]
patch 8.2.1549: "r" fails if 'esckeys' is off and modifyOtherKeys is used

Problem:    The "r" command fails for keys with modifiers if 'esckeys' is off
            and modifyOtherKeys is used. (Lauri Tirkkonen)
Solution:   Temporarily disable bracketed paste and modifyOtherKeys if
            'esckeys' is off. (closes #6809)

4 years agopatch 8.2.1548: cannot move position of "%%" in message translations v8.2.1548
Bram Moolenaar [Sun, 30 Aug 2020 17:42:06 +0000 (19:42 +0200)]
patch 8.2.1548: cannot move position of "%%" in message translations

Problem:    Cannot move position of "%%" in message translations. (Emir Sarı)
Solution:   Improve the check script.

4 years agopatch 8.2.1547: various comment problems v8.2.1547
Bram Moolenaar [Sun, 30 Aug 2020 17:26:45 +0000 (19:26 +0200)]
patch 8.2.1547: various comment problems

Problem:    Various comment problems.
Solution:   Update comments.

4 years agopatch 8.2.1546: build rule for Vim.app is unused v8.2.1546
Bram Moolenaar [Sun, 30 Aug 2020 16:11:54 +0000 (18:11 +0200)]
patch 8.2.1546: build rule for Vim.app is unused

Problem:    Build rule for Vim.app is unused.
Solution:   Delete the related build rules.

4 years agopatch 8.2.1545: ch_logfile() is unclear about closing when forking v8.2.1545
Bram Moolenaar [Sun, 30 Aug 2020 15:24:37 +0000 (17:24 +0200)]
patch 8.2.1545: ch_logfile() is unclear about closing when forking

Problem:    ch_logfile() is unclear about closing when forking.
Solution:   Adjust the log messages.

4 years agoUpdate runtime files.
Bram Moolenaar [Sun, 30 Aug 2020 15:20:20 +0000 (17:20 +0200)]
Update runtime files.

4 years agopatch 8.2.1544: cannot translate messages in a Vim script v8.2.1544
Bram Moolenaar [Sun, 30 Aug 2020 13:52:10 +0000 (15:52 +0200)]
patch 8.2.1544: cannot translate messages in a Vim script

Problem:    Cannot translate messages in a Vim script.
Solution:   Add gettext().  Try it out for a few messages in the options
            window.

4 years agopatch 8.2.1543: Vim9: test with invalid SID is skipped in the GUI v8.2.1543
Bram Moolenaar [Sun, 30 Aug 2020 10:54:53 +0000 (12:54 +0200)]
patch 8.2.1543: Vim9: test with invalid SID is skipped in the GUI

Problem:    Vim9: test with invalid SID is skipped in the GUI.
Solution:   Read the CTRL-C that feedkeys() put in typeahead.

4 years agopatch 8.2.1542: Vim9: test with invalid SID does not work in the GUI v8.2.1542
Bram Moolenaar [Sat, 29 Aug 2020 20:59:17 +0000 (22:59 +0200)]
patch 8.2.1542: Vim9: test with invalid SID does not work in the GUI

Problem:    Vim9: test with invalid SID does not work in the GUI.
Solution:   Skip the test in the GUI.

4 years agopatch 8.2.1541: Vim9: cannot find function reference for s:Func v8.2.1541
Bram Moolenaar [Sat, 29 Aug 2020 15:47:08 +0000 (17:47 +0200)]
patch 8.2.1541: Vim9: cannot find function reference for s:Func

Problem:    Vim9: cannot find function reference for s:Func.
Solution:   Recognize <SNR> prefix. (closes #6805)

4 years agopatch 8.2.1540: the user cannot try out emoji character widths v8.2.1540
Bram Moolenaar [Sat, 29 Aug 2020 14:41:27 +0000 (16:41 +0200)]
patch 8.2.1540: the user cannot try out emoji character widths

Problem:    The user cannot try out emoji character widths.
Solution:   Move the emoji script to the runtime/tools directory.

4 years agopatch 8.2.1539: using invalid script ID causes a crash v8.2.1539
Bram Moolenaar [Sat, 29 Aug 2020 11:39:17 +0000 (13:39 +0200)]
patch 8.2.1539: using invalid script ID causes a crash

Problem:    Using invalid script ID causes a crash.
Solution:   Check the script ID to be valid. (closes #6804)

4 years agopatch 8.2.1538: Python: iteration over vim objects fails to keep reference v8.2.1538
Bram Moolenaar [Sat, 29 Aug 2020 10:57:16 +0000 (12:57 +0200)]
patch 8.2.1538: Python: iteration over vim objects fails to keep reference

Problem:    Python: iteration over vim objects fails to keep reference.
Solution:   Keep a reference for the object. (Paul Ollis, closes #6803,
            closes #6806)

4 years agopatch 8.2.1537: memory acccess error when using setcellwidths() v8.2.1537
Bram Moolenaar [Fri, 28 Aug 2020 21:27:20 +0000 (23:27 +0200)]
patch 8.2.1537: memory acccess error when using setcellwidths()

Problem:    Memory acccess error when using setcellwidths().
Solution:   Use array and pointers correctly.

4 years agopatch 8.2.1536: cannot get the class of a character; emoji widths are wrong v8.2.1536
Bram Moolenaar [Fri, 28 Aug 2020 20:24:57 +0000 (22:24 +0200)]
patch 8.2.1536: cannot get the class of a character; emoji widths are wrong

Problem:    Cannot get the class of a character; emoji widths are wrong in
            some environments.
Solution:   Add charclass(). Update some emoji widths.  Add script to check
            emoji widths.

4 years agopatch 8.2.1535: it is not possible to specify cell widths of characters v8.2.1535
Bram Moolenaar [Fri, 28 Aug 2020 19:04:24 +0000 (21:04 +0200)]
patch 8.2.1535: it is not possible to specify cell widths of characters

Problem:    It is not possible to specify cell widths of characters.
Solution:   Add setcellwidths().

4 years agopatch 8.2.1534: Vim9: type error for argument type is not at call position v8.2.1534
Bram Moolenaar [Fri, 28 Aug 2020 15:19:07 +0000 (17:19 +0200)]
patch 8.2.1534: Vim9: type error for argument type is not at call position

Problem:    Vim9: type error for argument type is not at call position.
Solution:   Set the context and stack after checking the arguments.
            (issue #6785)

4 years agopatch 8.2.1533: Vim9: error when passing getreginfo() result to setreg() v8.2.1533
Bram Moolenaar [Fri, 28 Aug 2020 14:39:33 +0000 (16:39 +0200)]
patch 8.2.1533: Vim9: error when passing getreginfo() result to setreg()

Problem:    Vim9: error when passing getreginfo() result to setreg().
Solution:   Use dict_get_bool() for "isunnamed". (closes #6784)

4 years agopatch 8.2.1532: compiler warning for conversion of size_t to long v8.2.1532
Bram Moolenaar [Fri, 28 Aug 2020 14:38:11 +0000 (16:38 +0200)]
patch 8.2.1532: compiler warning for conversion of size_t to long

Problem:    Compiler warning for conversion of size_t to long.
Solution:   Add type cast.

4 years agopatch 8.2.1531: Vim9: test still fails on MS-Windows v8.2.1531
Bram Moolenaar [Thu, 27 Aug 2020 21:57:57 +0000 (23:57 +0200)]
patch 8.2.1531: Vim9: test still fails on MS-Windows

Problem:    Vim9: test still fails on MS-Windows.
Solution:   When skipping expect function to be NULL.

4 years agopatch 8.2.1530: Vim9: test fails on MS-Windows v8.2.1530
Bram Moolenaar [Thu, 27 Aug 2020 21:37:09 +0000 (23:37 +0200)]
patch 8.2.1530: Vim9: test fails on MS-Windows

Problem:    Vim9: test fails on MS-Windows.
Solution:   Skip Ex command inside "if false".

4 years agopatch 8.2.1529: Vim9: :elseif may be compiled when not needed v8.2.1529
Bram Moolenaar [Thu, 27 Aug 2020 21:08:47 +0000 (23:08 +0200)]
patch 8.2.1529: Vim9: :elseif may be compiled when not needed

Problem:    Vim9: :elseif may be compiled when not needed.
Solution:   Do evaluate the :elseif expression.

4 years agopatch 8.2.1528: Vim9: :endif not found after "if false" v8.2.1528
Bram Moolenaar [Thu, 27 Aug 2020 20:43:03 +0000 (22:43 +0200)]
patch 8.2.1528: Vim9: :endif not found after "if false"

Problem:    Vim9: :endif not found after "if false".
Solution:   When skipping still check for a following command. (closes #6797)

4 years agopatch 8.2.1527: Vim9: cannot use a function name at script level v8.2.1527
Bram Moolenaar [Thu, 27 Aug 2020 19:33:10 +0000 (21:33 +0200)]
patch 8.2.1527: Vim9: cannot use a function name at script level

Problem:    Vim9: cannot use a function name as a function reference at script
            level.
Solution:   Check if a name is a function name. (closes #6789)

4 years agopatch 8.2.1526: line in testdir Makefile got commented out v8.2.1526
Bram Moolenaar [Thu, 27 Aug 2020 14:06:46 +0000 (16:06 +0200)]
patch 8.2.1526: line in testdir Makefile got commented out

Problem:    Line in testdir Makefile got commented out. (Christian Brabandt)
Solution:   Revert.

4 years agopatch 8.2.1525: messages from tests were not always displayed v8.2.1525
Bram Moolenaar [Wed, 26 Aug 2020 20:29:57 +0000 (22:29 +0200)]
patch 8.2.1525: messages from tests were not always displayed

Problem:    Messages from tests were not always displayed.
Solution:   Always show messages, the timing is always useful. (Ken Takata,
            closes #6792)

4 years agopatch 8.2.1524: no longer get an error for string concatenation with float v8.2.1524
Bram Moolenaar [Tue, 25 Aug 2020 20:37:48 +0000 (22:37 +0200)]
patch 8.2.1524: no longer get an error for string concatenation with float

Problem:    No longer get an error for string concatenation with float.
            (Tsuyoshi Cho)
Solution:   Only convert float for Vim9 script. (closes #6787)

4 years agopatch 8.2.1523: still not enough test coverage for the spell file handling v8.2.1523
Bram Moolenaar [Tue, 25 Aug 2020 19:19:36 +0000 (21:19 +0200)]
patch 8.2.1523: still not enough test coverage for the spell file handling

Problem:    Still not enough test coverage for the spell file handling.
Solution:   Add spell file tests. (Yegappan Lakshmanan, closes #6790)

4 years agopatch 8.2.1522: not enough test coverage for the spell file handling v8.2.1522
Bram Moolenaar [Mon, 24 Aug 2020 18:28:56 +0000 (20:28 +0200)]
patch 8.2.1522: not enough test coverage for the spell file handling

Problem:    Not enough test coverage for the spell file handling.
Solution:   Add spell file tests. (Yegappan Lakshmanan, closes #6763)

4 years agopatch 8.2.1521: reading past end of buffer when reading spellfile v8.2.1521
Bram Moolenaar [Mon, 24 Aug 2020 18:05:50 +0000 (20:05 +0200)]
patch 8.2.1521: reading past end of buffer when reading spellfile

Problem:    Reading past end of buffer when reading spellfile. (Yegappan
            Lakshmanan)
Solution:   Store the byte length and check for it.

4 years agopatch 8.2.1520: Vim9: CTRL-] used in :def function does not work v8.2.1520
Bram Moolenaar [Sun, 23 Aug 2020 19:46:32 +0000 (21:46 +0200)]
patch 8.2.1520: Vim9: CTRL-] used in :def function does not work

Problem:    Vim9: CTRL-] used in :def function does not work.
Solution:   Omit count or prepend colon. (closes #6769)

4 years agopatch 8.2.1519: Vim9: Ex command default range is not set v8.2.1519
Bram Moolenaar [Sun, 23 Aug 2020 19:06:02 +0000 (21:06 +0200)]
patch 8.2.1519: Vim9: Ex command default range is not set

Problem:    Vim9: Ex command default range is not set.
Solution:   When range is not given use default. (closes #6779)

4 years agopatch 8.2.1518: Vim9: cannot assign to local option v8.2.1518
Bram Moolenaar [Sun, 23 Aug 2020 17:34:48 +0000 (19:34 +0200)]
patch 8.2.1518: Vim9: cannot assign to local option

Problem:    Vim9: cannot assign to local option.
Solution:   Skip over "&l:" and "&g:". (closes #6749)

4 years agopatch 8.2.1517: cannot easily get the character under the cursor v8.2.1517
Bram Moolenaar [Sun, 23 Aug 2020 15:34:46 +0000 (17:34 +0200)]
patch 8.2.1517: cannot easily get the character under the cursor

Problem:    Cannot easily get the character under the cursor.
Solution:   Add the {chars} argument to strpart().

4 years agopatch 8.2.1516: Vim9: error for :exe has wrong line number v8.2.1516
Bram Moolenaar [Sun, 23 Aug 2020 14:29:11 +0000 (16:29 +0200)]
patch 8.2.1516: Vim9: error for :exe has wrong line number

Problem:    Vim9: error for :exe has wrong line number.
Solution:   Set line number before calling do_cmdline_cmd(). (closes #6774)

4 years agopatch 8.2.1515: Vim9: can create s:var in legacy script but cannot unlet v8.2.1515
Bram Moolenaar [Sun, 23 Aug 2020 13:21:55 +0000 (15:21 +0200)]
patch 8.2.1515: Vim9: can create s:var in legacy script but cannot unlet

Problem:    Vim9: can create s:var in legacy script but cannot unlet.
Solution:   Allow :unlet for legacy script var.

4 years agopatch 8.2.1514: multibyte vertical separator is cleared when dragging popup v8.2.1514
Bram Moolenaar [Sun, 23 Aug 2020 13:09:36 +0000 (15:09 +0200)]
patch 8.2.1514: multibyte vertical separator is cleared when dragging popup

Problem:    Multibyte vertical separator is cleared when dragging a popup
            window using a multi-byte character for the border.
Solution:   Only clear the character before the window if it is double width.
            (closes #6766)

4 years agopatch 8.2.1513: cannot interrupt shell used for filename expansion v8.2.1513
Bram Moolenaar [Sun, 23 Aug 2020 12:28:37 +0000 (14:28 +0200)]
patch 8.2.1513: cannot interrupt shell used for filename expansion

Problem:    Cannot interrupt shell used for filename expansion. (Dominique
            Pellé)
Solution:   Do set tmode in mch_delay(). (closes #6770)

4 years agopatch 8.2.1512: failure after trinary expression fails v8.2.1512
Bram Moolenaar [Sat, 22 Aug 2020 20:37:20 +0000 (22:37 +0200)]
patch 8.2.1512: failure after trinary expression fails

Problem:    Failure after trinary expression fails.
Solution:   Restore eval_flags. (Yasuhiro Matsumoto, closes #6776)

4 years agopatch 8.2.1511: putting a string in Visual block mode ignores multi-byte v8.2.1511
Bram Moolenaar [Sat, 22 Aug 2020 19:08:44 +0000 (21:08 +0200)]
patch 8.2.1511: putting a string in Visual block mode ignores multi-byte

Problem:    Putting a string in Visual block mode ignores multi-byte
            characters.
Solution:   Adjust the column for Visual block mode. (closes #6767)

4 years agopatch 8.2.1510: using "var" in :def function may refer to legacy script var v8.2.1510
Bram Moolenaar [Sat, 22 Aug 2020 17:02:02 +0000 (19:02 +0200)]
patch 8.2.1510: using "var" in :def function may refer to legacy script var

Problem:    Using "var" in a :def function may refer to a legacy Vim script
            variable.
Solution:   Require using "s:" to refer to a legacy Vim script variable.
            (closes #6771)

4 years agopatch 8.2.1509: vertical separator is cleared when dragging a popup window v8.2.1509
Bram Moolenaar [Sat, 22 Aug 2020 15:21:14 +0000 (17:21 +0200)]
patch 8.2.1509: vertical separator is cleared when dragging a popup window

Problem:    Vertical separator is cleared when dragging a popup window using a
            multi-byte character for the border.
Solution:   Only clear the character before the window if it is using a
            multi-byte character. (closes #6766)

4 years agopatch 8.2.1508: not all debugger commands covered by tests v8.2.1508
Bram Moolenaar [Sat, 22 Aug 2020 14:04:52 +0000 (16:04 +0200)]
patch 8.2.1508: not all debugger commands covered by tests

Problem:    Not all debugger commands covered by tests.
Solution:   Add tests for going up/down in the stack. (Ben Jackson,
            closes #6765)

4 years agopatch 8.2.1507: using malloc() directly v8.2.1507
Bram Moolenaar [Sat, 22 Aug 2020 13:19:18 +0000 (15:19 +0200)]
patch 8.2.1507: using malloc() directly

Problem:    Using malloc() directly.
Solution:   Use ALLOC_ONE().  Remove superfluous typecast.  (Hussam al-Homsi,
            closes #6768)

4 years agopatch 8.2.1506: Vim9: no error when using a number other than 0 or 1 as bool v8.2.1506
Bram Moolenaar [Sat, 22 Aug 2020 13:06:35 +0000 (15:06 +0200)]
patch 8.2.1506: Vim9: no error when using a number other than 0 or 1 as bool

Problem:    Vim9: no error when using a number other than 0 or 1 as bool.
Solution:   Check the number is 0 or 1.

4 years agopatch 8.2.1505: not all file read and writecode is tested v8.2.1505
Bram Moolenaar [Fri, 21 Aug 2020 20:46:11 +0000 (22:46 +0200)]
patch 8.2.1505: not all file read and writecode is tested

Problem:    Not all file read and writecode is tested.
Solution:   Add a few tests. (Dominique Pellé, closes #6764)

4 years agopatch 8.2.1504: Vim9: white space checks are only done for a :def function v8.2.1504
Bram Moolenaar [Fri, 21 Aug 2020 20:36:47 +0000 (22:36 +0200)]
patch 8.2.1504: Vim9: white space checks are only done for a :def function

Problem:    Vim9: white space checks are only done for a :def function.
Solution:   Also do checks at the script level.  Adjust the name of a few
            error messages.

4 years agopatch 8.2.1503: Vim9: error for autocmd defined in :def in legacy script v8.2.1503
Bram Moolenaar [Fri, 21 Aug 2020 19:55:43 +0000 (21:55 +0200)]
patch 8.2.1503: Vim9: error for autocmd defined in :def in legacy script

Problem:    Vim9: error for an autocmd defined in a :def function in legacy
            Vim script.
Solution:   Don't check the variable type. (closes #6758)

4 years agopatch 8.2.1502: Vim9: can use += with a :let command at script level v8.2.1502
Bram Moolenaar [Fri, 21 Aug 2020 19:32:50 +0000 (21:32 +0200)]
patch 8.2.1502: Vim9: can use += with a :let command at script level

Problem:    Vim9: can use += with a :let command at script level.
Solution:   Give an error.

4 years agopatch 8.2.1501: Vim9: concatenating to constant reverses order v8.2.1501
Bram Moolenaar [Fri, 21 Aug 2020 18:43:17 +0000 (20:43 +0200)]
patch 8.2.1501: Vim9: concatenating to constant reverses order

Problem:    Vim9: concatenating to constant reverses order.
Solution:   Generate constant before option, register and environment
            variable. (closes #6757)

4 years agopatch 8.2.1500: Vim9: error when using address without a command v8.2.1500
Bram Moolenaar [Thu, 20 Aug 2020 21:04:06 +0000 (23:04 +0200)]
patch 8.2.1500: Vim9: error when using address without a command

Problem:    Vim9: error when using address without a command.
Solution:   Execute the range itself. (closes #6747)

4 years agopatch 8.2.1499: Vim9: error when using "$" with col() v8.2.1499
Bram Moolenaar [Thu, 20 Aug 2020 20:29:12 +0000 (22:29 +0200)]
patch 8.2.1499: Vim9: error when using "$" with col()

Problem:    Vim9: error when using "$" with col().
Solution:   Reorder getting the column value. (closes #6744)

4 years agopatch 8.2.1498: on slow systems tests can be flaky v8.2.1498
Bram Moolenaar [Thu, 20 Aug 2020 16:59:06 +0000 (18:59 +0200)]
patch 8.2.1498: on slow systems tests can be flaky

Problem:    On slow systems tests can be flaky.
Solution:   Use TermWait() instead of term-wait(). (Yegappan Lakshmanan,
            closes #6756)

4 years agopatch 8.2.1497: CursorHold test is flaky v8.2.1497
Bram Moolenaar [Thu, 20 Aug 2020 16:29:13 +0000 (18:29 +0200)]
patch 8.2.1497: CursorHold test is flaky

Problem:    CursorHold test is flaky. (Jakub Kądziołka)
Solution:   Use WaitForAssert() (closes #6754)

4 years agopatch 8.2.1496: Vim9: cannot use " #" in a mapping v8.2.1496
Bram Moolenaar [Thu, 20 Aug 2020 16:02:47 +0000 (18:02 +0200)]
patch 8.2.1496: Vim9: cannot use " #" in a mapping

Problem:    Vim9: cannot use " #" in a mapping.
Solution:   Do not remove a comment with the EX_NOTRLCOM flag. (closes #6746)

4 years agopatch 8.2.1495: "make clean" may delete too many files v8.2.1495
Bram Moolenaar [Thu, 20 Aug 2020 14:16:27 +0000 (16:16 +0200)]
patch 8.2.1495: "make clean" may delete too many files

Problem:    "make clean" may delete too many files.
Solution:   Do not delete $APPDIR. (closes #6751)

4 years agopatch 8.2.1494: missing change to calling eval_getline() v8.2.1494
Bram Moolenaar [Thu, 20 Aug 2020 13:52:21 +0000 (15:52 +0200)]
patch 8.2.1494: missing change to calling eval_getline()

Problem:    Missing change to calling eval_getline().
Solution:   Change last argument.

4 years agopatch 8.2.1493: not enough test coverage for the spell file handling v8.2.1493
Bram Moolenaar [Thu, 20 Aug 2020 13:41:55 +0000 (15:41 +0200)]
patch 8.2.1493: not enough test coverage for the spell file handling

Problem:    Not enough test coverage for the spell file handling.
Solution:   Add spell file tests. (Yegappan Lakshmanan, closes #6728)

4 years agopatch 8.2.1492: build failures v8.2.1492
Bram Moolenaar [Thu, 20 Aug 2020 13:25:00 +0000 (15:25 +0200)]
patch 8.2.1492: build failures

Problem:    Build failures.
Solution:   Move typedef out of #ifdef.  Adjust argument types.  Discover
            America.

4 years agopatch 8.2.1491: Vim9: crash when compiling heredoc lines start with comment v8.2.1491
Bram Moolenaar [Thu, 20 Aug 2020 13:02:42 +0000 (15:02 +0200)]
patch 8.2.1491: Vim9: crash when compiling heredoc lines start with comment

Problem:    Vim9: crash when compiling heredoc lines start with comment.
Solution:   Skip over NULL pointers. Do not remove comment and empty lines
            when fetching function lines. (closes #6743)

4 years agopatch 8.2.1490: Vim9: using /= with float and number doesn't work v8.2.1490
Bram Moolenaar [Wed, 19 Aug 2020 20:02:41 +0000 (22:02 +0200)]
patch 8.2.1490: Vim9: using /= with float and number doesn't work

Problem:    Vim9: using /= with float and number doesn't work.
Solution:   Better support assignment with operator. (closes #6742)

4 years agopatch 8.2.1489: Vim9: error when setting an option with setbufvar() v8.2.1489
Bram Moolenaar [Wed, 19 Aug 2020 19:20:49 +0000 (21:20 +0200)]
patch 8.2.1489: Vim9: error when setting an option with setbufvar()

Problem:    Vim9: error when setting an option with setbufvar().
Solution:   Do not get a number from a string value. (closes #6740)

4 years agopatch 8.2.1488: text does not scroll when inserting above first line v8.2.1488
Bram Moolenaar [Wed, 19 Aug 2020 18:19:48 +0000 (20:19 +0200)]
patch 8.2.1488: text does not scroll when inserting above first line

Problem:    Text does not scroll when inserting above first line.
Solution:   Adjust off-by-one error. (Ken Takata, closes #6739)

4 years agopatch 8.2.1487: Travis: installing snd-dummy is not always useful v8.2.1487
Bram Moolenaar [Wed, 19 Aug 2020 17:46:12 +0000 (19:46 +0200)]
patch 8.2.1487: Travis: installing snd-dummy is not always useful

Problem:    Travis: installing snd-dummy is not always useful.
Solution:   Only install snd-dummy on amd64. (Ozaki Kiichi, closes #6738)

4 years agopatch 8.2.1486: Vim9: readdir() expression doesn't accept bool v8.2.1486
Bram Moolenaar [Wed, 19 Aug 2020 14:00:06 +0000 (16:00 +0200)]
patch 8.2.1486: Vim9: readdir() expression doesn't accept bool

Problem:    Vim9: readdir() expression doesn't accept bool.
Solution:   Merge with code for readdirex(). (closes #6737)

4 years agopatch 8.2.1485: Vim9: readdirex() expression doesn't accept bool v8.2.1485
Bram Moolenaar [Wed, 19 Aug 2020 11:55:01 +0000 (13:55 +0200)]
patch 8.2.1485: Vim9: readdirex() expression doesn't accept bool

Problem:    Vim9: readdirex() expression doesn't accept bool.
Solution:   Accept both -1 and bool. (closes #6737)

4 years agopatch 8.2.1484: flaky failure in assert_fails() v8.2.1484
Bram Moolenaar [Tue, 18 Aug 2020 21:24:13 +0000 (23:24 +0200)]
patch 8.2.1484: flaky failure in assert_fails()

Problem:    Flaky failure in assert_fails().
Solution:   Only used fourth argument if there is a third argument.

4 years agopatch 8.2.1483: Vim9: error for using special as number v8.2.1483
Bram Moolenaar [Tue, 18 Aug 2020 20:50:38 +0000 (22:50 +0200)]
patch 8.2.1483: Vim9: error for using special as number

Problem:    Vim9: error for using special as number when returning "false"
            from a popup filter.
Solution:   Use tv_get_bool(). (closes #6733)

4 years agopatch 8.2.1482: Vim9: crash when using a nested lambda v8.2.1482
Bram Moolenaar [Tue, 18 Aug 2020 20:32:03 +0000 (22:32 +0200)]
patch 8.2.1482: Vim9: crash when using a nested lambda

Problem:    Vim9: crash when using a nested lambda.
Solution:   Do not clear the growarray when not evaluating.  Correct pointer
when getting the next line. (closes #6731)

4 years agopatch 8.2.1481: Vim9: line number reported with error may be wrong v8.2.1481
Bram Moolenaar [Tue, 18 Aug 2020 18:34:13 +0000 (20:34 +0200)]
patch 8.2.1481: Vim9: line number reported with error may be wrong

Problem:    Vim9: line number reported with error may be wrong.
Solution:   Check line number in tests.

4 years agopatch 8.2.1480: Vim9: skip expression in search() gives error v8.2.1480
Bram Moolenaar [Tue, 18 Aug 2020 17:11:38 +0000 (19:11 +0200)]
patch 8.2.1480: Vim9: skip expression in search() gives error

Problem:    Vim9: skip expression in search() gives error.
Solution:   use tv_get_bool() eval_expr_to_bool(). (closes #6729)

4 years agopatch 8.2.1479: Vim9: error for list index uses wrong line number v8.2.1479
Bram Moolenaar [Tue, 18 Aug 2020 11:41:50 +0000 (13:41 +0200)]
patch 8.2.1479: Vim9: error for list index uses wrong line number

Problem:    Vim9: error for list index uses wrong line number.
Solution:   Set source line number. (closes #6724)  Add a way to assert the
            line number of the error with assert_fails().

4 years agopatch 8.2.1478: Vim9: cannot use "true" for some popup options v8.2.1478
Bram Moolenaar [Tue, 18 Aug 2020 11:04:15 +0000 (13:04 +0200)]
patch 8.2.1478: Vim9: cannot use "true" for some popup options

Problem:    Vim9: cannot use "true" for some popup options.
Solution:   Add dict_get_bool(). (closes #6725)

4 years agopatch 8.2.1477: Vim9: error when using bufnr('%') v8.2.1477
Bram Moolenaar [Mon, 17 Aug 2020 20:21:36 +0000 (22:21 +0200)]
patch 8.2.1477: Vim9: error when using bufnr('%')

Problem:    Vim9: error when using bufnr('%').
Solution:   Don't give an error for using a string argument. (closes #6723)

4 years agopatch 8.2.1476: filetype test fails on MS-Windows v8.2.1476
Bram Moolenaar [Mon, 17 Aug 2020 19:57:09 +0000 (21:57 +0200)]
patch 8.2.1476: filetype test fails on MS-Windows

Problem:    Filetype test fails on MS-Windows.
Solution:   Remove "^" from pattern.

4 years agopatch 8.2.1475: Vim9: can't use v:true for option flags v8.2.1475
Bram Moolenaar [Mon, 17 Aug 2020 19:41:02 +0000 (21:41 +0200)]
patch 8.2.1475: Vim9: can't use v:true for option flags

Problem:    Vim9: can't use v:true for option flags.
Solution:   Add tv_get_bool_chk(). (closes #6725)

4 years agopatch 8.2.1474: /usr/lib/udef/rules.d not recognized as udevrules v8.2.1474
Bram Moolenaar [Mon, 17 Aug 2020 19:17:25 +0000 (21:17 +0200)]
patch 8.2.1474: /usr/lib/udef/rules.d not recognized as udevrules

Problem:    /usr/lib/udef/rules.d not recognized as udevrules.
Solution:   Adjust match pattern. (Haochen Tong, closes 36722)

4 years agopatch 8.2.1473: items in a list given to :const can still be modified v8.2.1473
Bram Moolenaar [Mon, 17 Aug 2020 19:07:22 +0000 (21:07 +0200)]
patch 8.2.1473: items in a list given to :const can still be modified

Problem:    Items in a list given to :const can still be modified.
Solution:   Work like ":lockvar! name" but don't lock referenced items.
            Make locking a blob work.

4 years agopatch 8.2.1472: ":argdel" does not work like ":.argdel" as documented v8.2.1472
Bram Moolenaar [Mon, 17 Aug 2020 17:34:10 +0000 (19:34 +0200)]
patch 8.2.1472: ":argdel" does not work like ":.argdel" as documented

Problem:    ":argdel" does not work like ":.argdel" as documented. (Alexey
            Demin)
Solution:   Make ":argdel" work like ":.argdel". (closes #6727)
            Also fix giving the error "0 more files to edit".

4 years agopatch 8.2.1471: :const only locks the variable, not the value v8.2.1471
Bram Moolenaar [Sun, 16 Aug 2020 20:50:01 +0000 (22:50 +0200)]
patch 8.2.1471: :const only locks the variable, not the value

Problem:    :const only locks the variable, not the value.
Solution:   Lock the value as ":lockvar 1 var" would do. (closes #6719)

4 years agopatch 8.2.1470: errors in spell file not tested v8.2.1470
Bram Moolenaar [Sun, 16 Aug 2020 19:51:49 +0000 (21:51 +0200)]
patch 8.2.1470: errors in spell file not tested

Problem:    Errors in spell file not tested.
Solution:   Add test for spell file errors. (Yegappan Lakshmanan,
            closes #6721)

4 years agopatch 8.2.1469: Vim9: cannot assign string to string option v8.2.1469
Bram Moolenaar [Sun, 16 Aug 2020 19:29:05 +0000 (21:29 +0200)]
patch 8.2.1469: Vim9: cannot assign string to string option

Problem:    Vim9: cannot assign string to string option.
Solution:   Change checks for option value. (closes #6720)

4 years agopatch 8.2.1468: Vim9: invalid error for missing white space v8.2.1468
Bram Moolenaar [Sun, 16 Aug 2020 16:42:53 +0000 (18:42 +0200)]
patch 8.2.1468: Vim9: invalid error for missing white space

Problem:    Vim9: invalid error for missing white space.
Solution:   Don't skip over white space after index. (closes #6718)

4 years agopatch 8.2.1467: Vim9: :echomsg doesn't like a dict argument v8.2.1467
Bram Moolenaar [Sun, 16 Aug 2020 16:29:35 +0000 (18:29 +0200)]
patch 8.2.1467: Vim9: :echomsg doesn't like a dict argument

Problem:    Vim9: :echomsg doesn't like a dict argument.
Solution:   Convert arguments like in legacy script. (closes #6717)

4 years agopatch 8.2.1466: Vim9: cannot index or slice a variable with type "any" v8.2.1466
Bram Moolenaar [Sun, 16 Aug 2020 15:33:35 +0000 (17:33 +0200)]
patch 8.2.1466: Vim9: cannot index or slice a variable with type "any"

Problem:    Vim9: cannot index or slice a variable with type "any".
Solution:   Add runtime index and slice.

4 years agopatch 8.2.1465: Vim9: subscript not handled properly v8.2.1465
Bram Moolenaar [Sun, 16 Aug 2020 12:48:19 +0000 (14:48 +0200)]
patch 8.2.1465: Vim9: subscript not handled properly

Problem:    Vim9: subscript not handled properly.
Solution:   Adjust error message.  Remove dead code.  Disallow string to
            number conversion in scripts.

4 years agopatch 8.2.1464: Vim9: build warning for unused variable v8.2.1464
Bram Moolenaar [Sat, 15 Aug 2020 20:48:48 +0000 (22:48 +0200)]
patch 8.2.1464: Vim9: build warning for unused variable

Problem:    Vim9: build warning for unused variable.
Solution:   Delete the variable declaration.

4 years agopatch 8.2.1463: Vim9: list slice not supported yet v8.2.1463
Bram Moolenaar [Sat, 15 Aug 2020 20:14:53 +0000 (22:14 +0200)]
patch 8.2.1463: Vim9: list slice not supported yet

Problem:    Vim9: list slice not supported yet.
Solution:   Add support for list slicing.

4 years agopatch 8.2.1462: Vim9: string slice not supported yet v8.2.1462
Bram Moolenaar [Sat, 15 Aug 2020 19:10:16 +0000 (21:10 +0200)]
patch 8.2.1462: Vim9: string slice not supported yet

Problem:    Vim9: string slice not supported yet.
Solution:   Add support for string slicing.

4 years agoUpdate runtime files.
Bram Moolenaar [Sat, 15 Aug 2020 16:55:18 +0000 (18:55 +0200)]
Update runtime files.