]> granicus.if.org Git - vim/log
vim
4 years agopatch 8.2.1355: Vim9: no error using :let for options and registers v8.2.1355
Bram Moolenaar [Sun, 2 Aug 2020 14:59:00 +0000 (16:59 +0200)]
patch 8.2.1355: Vim9: no error using :let for options and registers

Problem:    Vim9: no error using :let for options and registers.
Solution:   Give an error. (closes #6568)

4 years agopatch 8.2.1354: test 59 is old style v8.2.1354
Bram Moolenaar [Sun, 2 Aug 2020 14:10:39 +0000 (16:10 +0200)]
patch 8.2.1354: test 59 is old style

Problem:    Test 59 is old style.
Solution:   Convert into a new style test. (Yegappan Lakshmanan, closes #6604)

4 years agopatch 8.2.1353: crash when drawing double-wide character in terminal window v8.2.1353
Bram Moolenaar [Sun, 2 Aug 2020 13:05:05 +0000 (15:05 +0200)]
patch 8.2.1353: crash when drawing double-wide character in terminal window

Problem:    Crash when drawing double-wide character in terminal window.
            (Masato Nishihata)
Solution:   Check getcell() returning NULL. (issue #6141)

4 years agopatch 8.2.1352: Vim9: no error for shadowing a script-local function v8.2.1352
Bram Moolenaar [Sat, 1 Aug 2020 21:22:18 +0000 (23:22 +0200)]
patch 8.2.1352: Vim9: no error for shadowing a script-local function

Problem:    Vim9: no error for shadowing a script-local function by a nested
            function.
Solution:   Check for script-local function. (closes #6586)

4 years agopatch 8.2.1351: Vim9: no proper error if using namespace for nested function v8.2.1351
Bram Moolenaar [Sat, 1 Aug 2020 20:35:13 +0000 (22:35 +0200)]
patch 8.2.1351: Vim9: no proper error if using namespace for nested function

Problem:    Vim9: no proper error if using namespace for nested function.
Solution:   Specifically check for a namespace. (closes #6582)

4 years agopatch 8.2.1350: Vim9: no test for error message when redefining function v8.2.1350
Bram Moolenaar [Sat, 1 Aug 2020 20:23:20 +0000 (22:23 +0200)]
patch 8.2.1350: Vim9: no test for error message when redefining function

Problem:    Vim9: no test for error message when redefining function.
Solution:   Add a test.

4 years agopatch 8.2.1349: Vim9: can define a function with the name of an import v8.2.1349
Bram Moolenaar [Sat, 1 Aug 2020 20:16:43 +0000 (22:16 +0200)]
patch 8.2.1349: Vim9: can define a function with the name of an import

Problem:    Vim9: can define a function with the name of an import.
Solution:   Disallow using an existing name. (closes #6585)

4 years agopatch 8.2.1348: build failure without the eval feature v8.2.1348
Bram Moolenaar [Sat, 1 Aug 2020 19:11:38 +0000 (21:11 +0200)]
patch 8.2.1348: build failure without the eval feature

Problem:    Build failure without the eval feature.
Solution:   Add #ifdef.

4 years agopatch 8.2.1347: cannot easily get the script ID v8.2.1347
Bram Moolenaar [Sat, 1 Aug 2020 18:45:11 +0000 (20:45 +0200)]
patch 8.2.1347: cannot easily get the script ID

Problem:    Cannot easily get the script ID.
Solution:   Support expand('<SID>').

4 years agopatch 8.2.1346: small build fails v8.2.1346
Bram Moolenaar [Sat, 1 Aug 2020 17:23:43 +0000 (19:23 +0200)]
patch 8.2.1346: small build fails

Problem:    Small build fails.
Solution:   Add #ifdef.

4 years agopatch 8.2.1345: Redraw error when using visual block and scroll v8.2.1345
Bram Moolenaar [Sat, 1 Aug 2020 17:14:13 +0000 (19:14 +0200)]
patch 8.2.1345: Redraw error when using visual block and scroll

Problem:    Redraw error when using visual block and scroll.
Solution:   Add check for w_topline. ( closes #6597)

4 years agopatch 8.2.1344: Vim9: No test for trying to redefine global function v8.2.1344
Bram Moolenaar [Sat, 1 Aug 2020 16:57:52 +0000 (18:57 +0200)]
patch 8.2.1344: Vim9: No test for trying to redefine global function

Problem:    Vim9: No test for trying to redefine global function.
Solution:   Add a test.

4 years agopatch 8.2.1343: Vim9: cannot find global function when using g: v8.2.1343
Bram Moolenaar [Sat, 1 Aug 2020 16:53:07 +0000 (18:53 +0200)]
patch 8.2.1343: Vim9: cannot find global function when using g:

Problem:    Vim9: cannot find global function when using g: when local
            function with the same name exists.
Solution:   Find global function when using g:.

4 years agopatch 8.2.1342: Vim9: accidentally using "t" gives a confusing error v8.2.1342
Bram Moolenaar [Sat, 1 Aug 2020 15:00:03 +0000 (17:00 +0200)]
patch 8.2.1342: Vim9: accidentally using "t" gives a confusing error

Problem:    Vim9: accidentally using "x" gives a confusing error.
Solution:   Disallow using ":t" in Vim9 script. (issue #6399)

4 years agopatch 8.2.1341: build failures v8.2.1341
Bram Moolenaar [Sat, 1 Aug 2020 14:35:08 +0000 (16:35 +0200)]
patch 8.2.1341: build failures

Problem:    Build failures.
Solution:   Add missing error message.

4 years agopatch 8.2.1340: some tests fail on Cirrus CI and/or with FreeBSD v8.2.1340
Bram Moolenaar [Sat, 1 Aug 2020 14:08:19 +0000 (16:08 +0200)]
patch 8.2.1340: some tests fail on Cirrus CI and/or with FreeBSD

Problem:    Some tests fail on Cirrus CI and/or with FreeBSD.
Solution:   Make 'backupskip' empty. Do not run tests as root. Check for
            directory when using viminfo. (Ozaki Kiichi, closes #6596)

4 years agopatch 8.2.1339: Vim9: assigning to global dict variable doesn't work v8.2.1339
Bram Moolenaar [Sat, 1 Aug 2020 13:53:19 +0000 (15:53 +0200)]
patch 8.2.1339: Vim9: assigning to global dict variable doesn't work

Problem:    Vim9: assigning to global dict variable doesn't work.
Solution:   Guess variable type based in index type. (issue #6591)

4 years agopatch 8.2.1338: Vim9: assigning to script-local variable doesn't check type v8.2.1338
Bram Moolenaar [Sat, 1 Aug 2020 13:38:38 +0000 (15:38 +0200)]
patch 8.2.1338: Vim9: assigning to script-local variable doesn't check type

Problem:    Vim9: assigning to script-local variable doesn't check type.
Solution:   Use the type. (issue #6591)

4 years agopatch 8.2.1337: Vim9: cannot use empty key in dict assignment v8.2.1337
Bram Moolenaar [Sat, 1 Aug 2020 12:06:38 +0000 (14:06 +0200)]
patch 8.2.1337: Vim9: cannot use empty key in dict assignment

Problem:    Vim9: cannot use empty key in dict assignment.
Solution:   Allow empty key. (closes #6591)

4 years agopatch 8.2.1336: build failure on non-Unix systems v8.2.1336
Bram Moolenaar [Sat, 1 Aug 2020 11:22:10 +0000 (13:22 +0200)]
patch 8.2.1336: build failure on non-Unix systems

Problem:    Build failure on non-Unix systems.
Solution:   Add #ifdef.

4 years agopatch 8.2.1335: CTRL-C in the GUI doesn't interrupt v8.2.1335
Bram Moolenaar [Sat, 1 Aug 2020 11:10:14 +0000 (13:10 +0200)]
patch 8.2.1335: CTRL-C in the GUI doesn't interrupt

Problem:    CTRL-C in the GUI doesn't interrupt. (Sergey Vlasov)
Solution:   Recognize "C" with CTRL modifier as CTRL-C. (issue #6565)

4 years agopatch 8.2.1334: Github workflow timeout needs tuning v8.2.1334
Bram Moolenaar [Sat, 1 Aug 2020 10:26:04 +0000 (12:26 +0200)]
patch 8.2.1334: Github workflow timeout needs tuning

Problem:    Github workflow timeout needs tuning
Solution:   Use a 10 minute timeout. Fail when timing out. (Ken Takata,
            closes #6590)

4 years agopatch 8.2.1333: Vim9: memory leak when using nested global function v8.2.1333
Bram Moolenaar [Fri, 31 Jul 2020 22:03:09 +0000 (00:03 +0200)]
patch 8.2.1333: Vim9: memory leak when using nested global function

Problem:    Vim9: memory leak when using nested global function.
Solution:   Swap from and to when copying the lines.

4 years agopatch 8.2.1332: Vim9: memory leak when using nested global function v8.2.1332
Bram Moolenaar [Fri, 31 Jul 2020 21:47:12 +0000 (23:47 +0200)]
patch 8.2.1332: Vim9: memory leak when using nested global function

Problem:    Vim9: memory leak when using nested global function.
Solution:   Delete the function when deleting the instruction.  Disable test
            that still causes a leak.

4 years agopatch 8.2.1331: Vim9: :echo with two lists doesn't work v8.2.1331
Bram Moolenaar [Fri, 31 Jul 2020 20:38:17 +0000 (22:38 +0200)]
patch 8.2.1331: Vim9: :echo with two lists doesn't work

Problem:    Vim9: :echo with two lists doesn't work.
Solution:   Do not skip white space before []. (closes #6552)

4 years agopatch 8.2.1330: Github workflow takes longer than needed v8.2.1330
Bram Moolenaar [Fri, 31 Jul 2020 20:17:32 +0000 (22:17 +0200)]
patch 8.2.1330: Github workflow takes longer than needed

Problem:    Github workflow takes longer than needed.
Solution:   Do two test runs in parallel instead of sequentially. (Ken Takata,
            closes #6579)

4 years agopatch 8.2.1329: Vim9: cannot define global function inside :def function v8.2.1329
Bram Moolenaar [Fri, 31 Jul 2020 20:05:04 +0000 (22:05 +0200)]
patch 8.2.1329: Vim9: cannot define global function inside :def function

Problem:    Vim9: cannot define global function inside :def function.
Solution:   Assign to global variable instead of local. (closes #6584)

4 years agopatch 8.2.1328: no space allowed before comma in list v8.2.1328
Bram Moolenaar [Thu, 30 Jul 2020 20:14:33 +0000 (22:14 +0200)]
patch 8.2.1328: no space allowed before comma in list

Problem:    No space allowed before comma in list.
Solution:   Legacy Vim script allows it. (closes #6577)

4 years agopatch 8.2.1327: Mac: configure can't find Tcl libraries v8.2.1327
Bram Moolenaar [Thu, 30 Jul 2020 18:18:08 +0000 (20:18 +0200)]
patch 8.2.1327: Mac: configure can't find Tcl libraries

Problem:    Mac: configure can't find Tcl libraries.
Solution:   Adjust configure check. (closes #6575)

4 years agopatch 8.2.1326: Vim9: skipping over white space after list v8.2.1326
Bram Moolenaar [Thu, 30 Jul 2020 18:08:50 +0000 (20:08 +0200)]
patch 8.2.1326: Vim9: skipping over white space after list

Problem:    Vim9: skipping over white space after list.
Solution:   Do not skip white space, a following [] would be misinterpreted.
            (closes #6552)  Fix a few side effects.

4 years agopatch 8.2.1325: Vim9: using Vim9 script for autaload not tested v8.2.1325
Bram Moolenaar [Wed, 29 Jul 2020 20:11:05 +0000 (22:11 +0200)]
patch 8.2.1325: Vim9: using Vim9 script for autaload not tested

Problem:    Vim9: using Vim9 script for autaload not tested.
Solution:   Add a test.  Update help.

4 years agopatch 8.2.1324: Vim9: line break after "=" does not work v8.2.1324
Bram Moolenaar [Wed, 29 Jul 2020 19:37:43 +0000 (21:37 +0200)]
patch 8.2.1324: Vim9: line break after "=" does not work

Problem:    Vim9: line break after "=" does not work.
Solution:   Also allow for NUL after "=". (closes #6549)

4 years agopatch 8.2.1323: Vim9: invalid operators only rejected in :def function v8.2.1323
Bram Moolenaar [Wed, 29 Jul 2020 19:20:41 +0000 (21:20 +0200)]
patch 8.2.1323: Vim9: invalid operators only rejected in :def function

Problem:    Vim9: invalid operators only rejected in :def function.
Solution:   Also reject them at script level. (closes #6564)

4 years agopatch 8.2.1322: Vim9: method on double quoted string doesn't work v8.2.1322
Bram Moolenaar [Wed, 29 Jul 2020 18:00:38 +0000 (20:00 +0200)]
patch 8.2.1322: Vim9: method on double quoted string doesn't work

Problem:    Vim9: method on double quoted string doesn't work.
Solution:   Recognize double quoted string. (closes #6562)

4 years agopatch 8.2.1321: GitHub CI also runs on tag push v8.2.1321
Bram Moolenaar [Wed, 29 Jul 2020 17:29:23 +0000 (19:29 +0200)]
patch 8.2.1321: GitHub CI also runs on tag push

Problem:    GitHub CI also runs on tag push.
Solution:   Skip CI on push. (Ken Takata, closes #6571)

4 years agopatch 8.2.1320: Vim9: cannot declare some single letter variables v8.2.1320
Bram Moolenaar [Wed, 29 Jul 2020 17:18:00 +0000 (19:18 +0200)]
patch 8.2.1320: Vim9: cannot declare some single letter variables

Problem:    Vim9: cannot declare some single letter variables.
Solution:   Do not recognize a colon for a namespace for single letter
            variables. (closes #6547)

4 years agopatch 8.2.1319: status badge for Github CI has wrong link v8.2.1319
Bram Moolenaar [Wed, 29 Jul 2020 15:43:55 +0000 (17:43 +0200)]
patch 8.2.1319: status badge for Github CI has wrong link

Problem:    Status badge for Github CI has wrong link.
Solution:   Rename and use the right link

4 years agopatch 8.2.1318: no status badge for Github CI v8.2.1318
Bram Moolenaar [Wed, 29 Jul 2020 15:34:33 +0000 (17:34 +0200)]
patch 8.2.1318: no status badge for Github CI

Problem:    No status badge for Github CI.
Solution:   Add a badge.

4 years agopatch 8.2.1317: MS-Windows tests on AppVeyor are slow v8.2.1317
Bram Moolenaar [Wed, 29 Jul 2020 14:32:21 +0000 (16:32 +0200)]
patch 8.2.1317: MS-Windows tests on AppVeyor are slow

Problem:    MS-Windows tests on AppVeyor are slow.
Solution:   Use GitHub Actions. (Ken Takata, closes #6569)

4 years agopatch 8.2.1316: test 42 is still old style v8.2.1316
Bram Moolenaar [Wed, 29 Jul 2020 14:08:21 +0000 (16:08 +0200)]
patch 8.2.1316: test 42 is still old style

Problem:    Test 42 is still old style.
Solution:   Turn it into a new style test. (Yegappan Lakshmanan, closes #6561)

4 years agopatch 8.2.1315: MS-Windows: test log contains escape sequences v8.2.1315
Bram Moolenaar [Wed, 29 Jul 2020 13:03:01 +0000 (15:03 +0200)]
patch 8.2.1315: MS-Windows: test log contains escape sequences

Problem:    MS-Windows: test log contains escape sequences.
Solution:   Do not use t_md and t_me but ANSI escape sequences. (Ken Takata,
            closes #6559)

4 years agopatch 8.2.1314: Vim9: rule for comment after :function is confusing v8.2.1314
Bram Moolenaar [Wed, 29 Jul 2020 12:40:25 +0000 (14:40 +0200)]
patch 8.2.1314: Vim9: rule for comment after :function is confusing

Problem:    Vim9: rule for comment after :function is confusing.
Solution:   Allow double quoted comment after :function in vim9script.
            (closes #6556)

4 years agopatch 8.2.1313: Vim9 script: cannot assign to environment variable v8.2.1313
Bram Moolenaar [Tue, 28 Jul 2020 20:38:37 +0000 (22:38 +0200)]
patch 8.2.1313: Vim9 script: cannot assign to environment variable

Problem:    Vim9 script: cannot assign to environment variable.
Solution:   Recognize environment variable assignment. (closes #6548)
            Also options and registers.

4 years agopatch 8.2.1312: MS-Windows: terminal test may fail if dir.exe exists v8.2.1312
Bram Moolenaar [Tue, 28 Jul 2020 19:40:27 +0000 (21:40 +0200)]
patch 8.2.1312: MS-Windows: terminal test may fail if dir.exe exists

Problem:    MS-Windows: terminal test may fail if dir.exe exists.
Solution:   Use dir.com. (Ken Takata, closes #6557)

4 years agopatch 8.2.1311: test failures with legacy Vim script v8.2.1311
Bram Moolenaar [Tue, 28 Jul 2020 19:15:07 +0000 (21:15 +0200)]
patch 8.2.1311: test failures with legacy Vim script

Problem:    Test failures with legacy Vim script.
Solution:   Actually check for Vim9 script.

4 years agopatch 8.2.1310: configure with Xcode 12 fails to check for tgetent v8.2.1310
Bram Moolenaar [Tue, 28 Jul 2020 19:03:37 +0000 (21:03 +0200)]
patch 8.2.1310: configure with Xcode 12 fails to check for tgetent

Problem:    Configure with Xcode 12 fails to check for tgetent.
Solution:   Declare tgetent(). (Ozaki Kiichi, closes #6558)

4 years agopatch 8.2.1309: build failure with tiny version v8.2.1309
Bram Moolenaar [Tue, 28 Jul 2020 18:25:47 +0000 (20:25 +0200)]
patch 8.2.1309: build failure with tiny version

Problem:    Build failure with tiny version.
Solution:   Add #ifdef.

4 years agopatch 8.2.1308: Vim9: accidentally using "x" causes Vim to exit v8.2.1308
Bram Moolenaar [Tue, 28 Jul 2020 18:07:27 +0000 (20:07 +0200)]
patch 8.2.1308: Vim9: accidentally using "x" causes Vim to exit

Problem:    Vim9: accidentally using "x" causes Vim to exit.
Solution:   Disallow using ":x" or "xit" in Vim9 script. (closes #6399)

4 years agopatch 8.2.1307: popup window width does not include number of sign columns v8.2.1307
Bram Moolenaar [Mon, 27 Jul 2020 20:40:37 +0000 (22:40 +0200)]
patch 8.2.1307: popup window width does not include number of sign columns

Problem:    popup window width does not include number, fold of sign column
            width.
Solution:   Take number, fold and sign column with into account.

4 years agopatch 8.2.1306: checking for first character of dict key is inconsistent v8.2.1306
Bram Moolenaar [Mon, 27 Jul 2020 19:43:28 +0000 (21:43 +0200)]
patch 8.2.1306: checking for first character of dict key is inconsistent

Problem:    Checking for first character of dict key is inconsistent.
Solution:   Add eval_isdictc(). (closes #6546)

4 years agopatch 8.2.1305: some tests are still old style v8.2.1305
Bram Moolenaar [Mon, 27 Jul 2020 18:02:41 +0000 (20:02 +0200)]
patch 8.2.1305: some tests are still old style

Problem:    Some tests are still old style.
Solution:   Convert tests 52 and 70 to new style. (Yegappan Lakshmanan,
            closes #6544)  Fix error in FinishTesting().

4 years agopatch 8.2.1304: debug backtrace isn't tested much v8.2.1304
Bram Moolenaar [Mon, 27 Jul 2020 17:47:07 +0000 (19:47 +0200)]
patch 8.2.1304: debug backtrace isn't tested much

Problem:    Debug backtrace isn't tested much.
Solution:   Add more specific tests. (Ben Jackson, closes #6540)

4 years agopatch 8.2.1303: calling popup_setoptions() resets 'signcolumn' v8.2.1303
Bram Moolenaar [Sun, 26 Jul 2020 20:20:54 +0000 (22:20 +0200)]
patch 8.2.1303: calling popup_setoptions() resets 'signcolumn'

Problem:    Calling popup_setoptions() resets 'signcolumn'.
Solution:   Only set 'signcolumn' when creating the popup. (closes #6542)

4 years agopatch 8.2.1302: Vim9: varargs arg after optional arg does not work v8.2.1302
Bram Moolenaar [Sun, 26 Jul 2020 16:33:09 +0000 (18:33 +0200)]
patch 8.2.1302: Vim9: varargs arg after optional arg does not work

Problem:    Vim9: varargs arg after optional arg does not work
Solution:   Check for the "..." first. (issue #6507)

4 years agopatch 8.2.1301: Vim9: varargs argument type not parsed properly v8.2.1301
Bram Moolenaar [Sun, 26 Jul 2020 16:16:58 +0000 (18:16 +0200)]
patch 8.2.1301: Vim9: varargs argument type not parsed properly

Problem:    Vim9: varargs argument type not parsed properly.
Solution:   Skip over the "...". (issue #6507)

4 years agopatch 8.2.1300: Vim9: optional argument type not parsed properly v8.2.1300
Bram Moolenaar [Sun, 26 Jul 2020 15:56:25 +0000 (17:56 +0200)]
patch 8.2.1300: Vim9: optional argument type not parsed properly

Problem:    Vim9: optional argument type not parsed properly.
Solution:   Skip over the "?". (issue #6507)

4 years agoUpdate runtime files.
Bram Moolenaar [Sun, 26 Jul 2020 15:00:44 +0000 (17:00 +0200)]
Update runtime files.

4 years agopatch 8.2.1299: compiler warning for using size_t for int and void pointer v8.2.1299
Bram Moolenaar [Sun, 26 Jul 2020 13:55:25 +0000 (15:55 +0200)]
patch 8.2.1299: compiler warning for using size_t for int and void pointer

Problem:    Compiler warning for using size_t for int and void pointer.
Solution:   Add type casts.

4 years agopatch 8.2.1298: compiler warning for unused argument in small version v8.2.1298
Bram Moolenaar [Sun, 26 Jul 2020 13:51:06 +0000 (15:51 +0200)]
patch 8.2.1298: compiler warning for unused argument in small version

Problem:    Compiler warning for unused argument in small version.
Solution:   Add UNUSED.

4 years agopatch 8.2.1297: when a test fails it's often not easy to see where v8.2.1297
Bram Moolenaar [Sun, 26 Jul 2020 13:37:02 +0000 (15:37 +0200)]
patch 8.2.1297: when a test fails it's often not easy to see where

Problem:    When a test fails it's often not easy to see what the call stack
            is.
Solution:   Add more entries from the call stack in the exception message.

4 years agopatch 8.2.1296: some part of using 'smarcase' was not tested v8.2.1296
Bram Moolenaar [Sun, 26 Jul 2020 11:27:16 +0000 (13:27 +0200)]
patch 8.2.1296: some part of using 'smarcase' was not tested

Problem:    Some part of using 'smarcase' was not tested.
Solution:   Add more tests. (Dominique Pellé, closes #6538)

4 years agopatch 8.2.1295: tests 44 and 99 are old style v8.2.1295
Bram Moolenaar [Sun, 26 Jul 2020 10:52:59 +0000 (12:52 +0200)]
patch 8.2.1295: tests 44 and 99 are old style

Problem:    Tests 44 and 99 are old style.
Solution:   Convert to new style tests. (Yegappan Lakshmanan, closes #6536)

4 years agopatch 8.2.1294: Vim9: error when using vim9script in TextYankPost v8.2.1294
Bram Moolenaar [Sat, 25 Jul 2020 17:38:18 +0000 (19:38 +0200)]
patch 8.2.1294: Vim9: error when using vim9script in TextYankPost

Problem:    Vim9: error when using vim9script in TextYankPost.
Solution:   Use EX_LOCKOK instead of the EX_CMDWIN flag for command that can
            be used when text is locked. (closes #6529)

4 years agopatch 8.2.1293: Vim9: error when using vim9script in TextYankPost v8.2.1293
Bram Moolenaar [Sat, 25 Jul 2020 17:30:59 +0000 (19:30 +0200)]
patch 8.2.1293: Vim9: error when using vim9script in TextYankPost

Problem:    Vim9: error when using vim9script in TextYankPost.
Solution:   Use EX_LOCKOK instead of the EX_CMDWIN flag for command that can
            be used when text is locked. (closes #6529)

4 years agopatch 8.2.1292: AIDL filetype not recognized v8.2.1292
Bram Moolenaar [Sat, 25 Jul 2020 14:53:12 +0000 (16:53 +0200)]
patch 8.2.1292: AIDL filetype not recognized

Problem:    AIDL filetype not recognized.
Solution:   Add filetype detection. (Dominique Pellé, closes #6533)

4 years agopatch 8.2.1291: Vim9: type of varargs items is not checked v8.2.1291
Bram Moolenaar [Sat, 25 Jul 2020 14:33:02 +0000 (16:33 +0200)]
patch 8.2.1291: Vim9: type of varargs items is not checked

Problem:    Vim9: type of varargs items is not checked.
Solution:   Check the list item types. (closes #6523)

4 years agopatch 8.2.1290: Vim9: cannot replace a global function v8.2.1290
Bram Moolenaar [Sat, 25 Jul 2020 13:41:11 +0000 (15:41 +0200)]
patch 8.2.1290: Vim9: cannot replace a global function

Problem:    Vim9: cannot replace a global function.
Solution:   Allow for "!" on a global function. (closes #6524)  Also fix that
            :delfunc on a :def function only made it empty.

4 years agopatch 8.2.1289: crash when using a custom completion function v8.2.1289
Bram Moolenaar [Sat, 25 Jul 2020 12:11:55 +0000 (14:11 +0200)]
patch 8.2.1289: crash when using a custom completion function

Problem:    Crash when using a custom completion function.
Solution:   Initialize all of the expand_T. (closes #6532)

4 years agopatch 8.2.1288: Vim9: cannot use mark in range v8.2.1288
Bram Moolenaar [Fri, 24 Jul 2020 16:47:22 +0000 (18:47 +0200)]
patch 8.2.1288: Vim9: cannot use mark in range

Problem:    Vim9: cannot use mark in range.
Solution:   Use the flag that a colon was seen. (closes #6528)

4 years agopatch 8.2.1287: Vim9: crash when using an imported function v8.2.1287
Bram Moolenaar [Thu, 23 Jul 2020 20:41:43 +0000 (22:41 +0200)]
patch 8.2.1287: Vim9: crash when using an imported function

Problem:    Vim9: crash when using an imported function.
Solution:   Add the function type to the imported entry. (closes #6522)

4 years agopatch 8.2.1286: Vim9: No error when using a type to a window variable v8.2.1286
Bram Moolenaar [Thu, 23 Jul 2020 19:14:43 +0000 (21:14 +0200)]
patch 8.2.1286: Vim9: No error when using a type to a window variable

Problem:    Vim9: No error when using a type to a window variable
Solution:   Recognize the syntax and give an error. (closes #6521)

4 years agopatch 8.2.1285: Vim9: argument types are not checked on assignment v8.2.1285
Bram Moolenaar [Thu, 23 Jul 2020 18:56:04 +0000 (20:56 +0200)]
patch 8.2.1285: Vim9: argument types are not checked on assignment

Problem:    Vim9: argument types are not checked on assignment.
Solution:   Check function argument types. (issue #6507)

4 years agopatch 8.2.1284: Vim9: skipping over type includes following white space v8.2.1284
Bram Moolenaar [Thu, 23 Jul 2020 18:09:10 +0000 (20:09 +0200)]
patch 8.2.1284: Vim9: skipping over type includes following white space

Problem:    Vim9: skipping over type includes following white space, leading
            to an error for missing white space.
Solution:   Do not skip over white space after the type.

4 years agopatch 8.2.1283: Vim9: error for misplaced -> lacks argument v8.2.1283
Bram Moolenaar [Thu, 23 Jul 2020 17:06:23 +0000 (19:06 +0200)]
patch 8.2.1283: Vim9: error for misplaced -> lacks argument

Problem:    Vim9: error for misplaced -> lacks argument.
Solution:   Use the pointer before it was advanced.

4 years agopatch 8.2.1282: Vim9: crash when using CheckScriptFailure() v8.2.1282
Bram Moolenaar [Thu, 23 Jul 2020 16:26:30 +0000 (18:26 +0200)]
patch 8.2.1282: Vim9: crash when using CheckScriptFailure()

Problem:    Vim9: crash when using CheckScriptFailure() in
            Test_vim9script_call_fail_decl().
Solution:   Do not decrement the def_functions len unless the function was
            newly added.

4 years agopatch 8.2.1281: the "trailing characters" error can be hard to understand v8.2.1281
Bram Moolenaar [Thu, 23 Jul 2020 15:16:18 +0000 (17:16 +0200)]
patch 8.2.1281: the "trailing characters" error can be hard to understand

Problem:    The "trailing characters" error can be hard to understand.
Solution:   Add the trailing characters to the message.

4 years agopatch 8.2.1280: Ex command error cannot contain an argument v8.2.1280
Bram Moolenaar [Thu, 23 Jul 2020 14:37:03 +0000 (16:37 +0200)]
patch 8.2.1280: Ex command error cannot contain an argument

Problem:    Ex command error cannot contain an argument.
Solution:   Add ex_errmsg() and translate earlier.  Use e_trailing_arg where
            possible.

4 years agopatch 8.2.1279: some tests on Travis have EXITFREE duplicated v8.2.1279
Bram Moolenaar [Thu, 23 Jul 2020 13:50:40 +0000 (15:50 +0200)]
patch 8.2.1279: some tests on Travis have EXITFREE duplicated

Problem:    Some tests on Travis have EXITFREE duplicated.
Solution:   Remove EXITFREE from shadowopt.  Add "shadow" to job name.

4 years agopatch 8.2.1278: Vim9: line break after "->" only allowed in :def function v8.2.1278
Bram Moolenaar [Thu, 23 Jul 2020 13:38:03 +0000 (15:38 +0200)]
patch 8.2.1278: Vim9: line break after "->" only allowed in :def function

Problem:    Vim9: line break after "->" only allowed in :def function.
Solution:   Only allow line break after "->". (closes #6492)

4 years agopatch 8.2.1277: tests on Travis do not run with EXITFREE v8.2.1277
Bram Moolenaar [Thu, 23 Jul 2020 12:59:07 +0000 (14:59 +0200)]
patch 8.2.1277: tests on Travis do not run with EXITFREE

Problem:    Tests on Travis do not run with EXITFREE.
Solution:   Add EXITFREE to all builds to uncover any mistakes.

4 years agopatch 8.2.1276: MS-Windows: system test may fail if more.exe is installed v8.2.1276
Bram Moolenaar [Thu, 23 Jul 2020 12:51:02 +0000 (14:51 +0200)]
patch 8.2.1276: MS-Windows: system test may fail if more.exe is installed

Problem:    MS-Windows: system test may fail if more.exe is installed.
Solution:   Explicitly use more.com. (Taro Muraoka, Ken Takata, closes #6517)

4 years agopatch 8.2.1275: Vim9: compiler warning for buffer size v8.2.1275
Bram Moolenaar [Thu, 23 Jul 2020 12:39:47 +0000 (14:39 +0200)]
patch 8.2.1275: Vim9: compiler warning for buffer size

Problem:    Vim9: compiler warning for buffer size.
Solution:   Change the offset from 10 to 15. (Dominique Pellé, closes #6518)

4 years agopatch 8.2.1274: Vim9: no error for missing white space at script level v8.2.1274
Bram Moolenaar [Thu, 23 Jul 2020 11:11:37 +0000 (13:11 +0200)]
patch 8.2.1274: Vim9: no error for missing white space at script level

Problem:    Vim9: no error for missing white space in assignment at script
            level.
Solution:   Check for white space. (closes #6495)

4 years agopatch 8.2.1273: MS-Windows: terminal test may leave file behind v8.2.1273
Bram Moolenaar [Wed, 22 Jul 2020 20:23:40 +0000 (22:23 +0200)]
patch 8.2.1273: MS-Windows: terminal test may leave file behind

Problem:    MS-Windows: terminal test may leave file behind.
Solution:   Wait a moment for process to end before deleting the file.
            (Taro Muraoka, closes #6513)

4 years agopatch 8.2.1272: Vim9: type not checked if declaration also assigns value v8.2.1272
Bram Moolenaar [Wed, 22 Jul 2020 19:45:14 +0000 (21:45 +0200)]
patch 8.2.1272: Vim9: type not checked if declaration also assigns value

Problem:    Vim9: type not checked if declaration also assigns value.
Solution:   Check the type. (issue #6507)

4 years agopatch 8.2.1271: Vim9: Error for Funcref function argument type v8.2.1271
Bram Moolenaar [Wed, 22 Jul 2020 18:16:11 +0000 (20:16 +0200)]
patch 8.2.1271: Vim9: Error for Funcref function argument type

Problem:    Vim9: Error for Funcref function argument type.
Solution:   Find the actual function type if possible. (issue #6507)

4 years agopatch 8.2.1270: Vim9: not skipping over function type declaration v8.2.1270
Bram Moolenaar [Wed, 22 Jul 2020 17:30:06 +0000 (19:30 +0200)]
patch 8.2.1270: Vim9: not skipping over function type declaration

Problem:    Vim9: not skipping over function type declaration with only a
            return type.
Solution:   Skip over the return type. (issue #6507)

4 years agopatch 8.2.1269: language and locale code spread out v8.2.1269
Bram Moolenaar [Wed, 22 Jul 2020 17:11:19 +0000 (19:11 +0200)]
patch 8.2.1269: language and locale code spread out

Problem:    Language and locale code spread out.
Solution:   Move relevant code to src/locale.c. (Yegappan Lakshmanan,
            closes #6509)

4 years agopatch 8.2.1268: Vim9: no error for using double quote comment v8.2.1268
Bram Moolenaar [Wed, 22 Jul 2020 16:17:08 +0000 (18:17 +0200)]
patch 8.2.1268: Vim9: no error for using double quote comment

Problem:    Vim9: no error for using double quote comment after :func or :def.
Solution:   Only accept double quote when not in Vim9 script and not after
            :def. (closes #6483)

4 years agopatch 8.2.1267: MS-Windows: tests may fail due to $PROMPT value v8.2.1267
Bram Moolenaar [Wed, 22 Jul 2020 16:14:58 +0000 (18:14 +0200)]
patch 8.2.1267: MS-Windows: tests may fail due to $PROMPT value

Problem:    MS-Windows: tests may fail due to $PROMPT value.
Solution:   Set $PROMPT for testing. (Taro Muraoka, closes #6510)

4 years agopatch 8.2.1266: Makefile preference were accidentally included v8.2.1266
Bram Moolenaar [Tue, 21 Jul 2020 20:34:41 +0000 (22:34 +0200)]
patch 8.2.1266: Makefile preference were accidentally included

Problem:    Makefile preference were accidentally included.
Solution:   Revert the Makefile changes.

4 years agopatch 8.2.1265: crash with EXITFREE when split() fails v8.2.1265
Bram Moolenaar [Tue, 21 Jul 2020 20:25:51 +0000 (22:25 +0200)]
patch 8.2.1265: crash with EXITFREE when split() fails

Problem:    Crash with EXITFREE when split() fails.
Solution:   Restore 'cpoptions'.

4 years agopatch 8.2.1264: terminal getwinpos() test is a bit flaky v8.2.1264
Bram Moolenaar [Tue, 21 Jul 2020 19:48:58 +0000 (21:48 +0200)]
patch 8.2.1264: terminal getwinpos() test is a bit flaky

Problem:    Terminal getwinpos() test is a bit flaky.
Solution:   Call getwinpos() a bit later.

4 years agopatch 8.2.1263: Vim9: comperators use 'ignorecase' in Vim9 script v8.2.1263
Bram Moolenaar [Tue, 21 Jul 2020 19:31:00 +0000 (21:31 +0200)]
patch 8.2.1263: Vim9: comperators use 'ignorecase' in Vim9 script

Problem:    Vim9: comperators use 'ignorecase' in Vim9 script.
Solution:   Ignore 'ignorecase'.  Use true and false instead of 1 and 0.
            (closes #6497)

4 years agopatch 8.2.1262: src/ex_cmds.c file is too big v8.2.1262
Bram Moolenaar [Tue, 21 Jul 2020 19:07:20 +0000 (21:07 +0200)]
patch 8.2.1262: src/ex_cmds.c file is too big

Problem:    src/ex_cmds.c file is too big.
Solution:   Move help related code to src/help.c. (Yegappan Lakshmanan,
            closes #6506)

4 years agopatch 8.2.1261: Vim9: common type of function not tested v8.2.1261
Bram Moolenaar [Tue, 21 Jul 2020 18:55:50 +0000 (20:55 +0200)]
patch 8.2.1261: Vim9: common type of function not tested

Problem:    Vim9: common type of function not tested.
Solution:   Add a test.  Fix uncovered problems.

4 years agopatch 8.2.1260: there is no good test for CursorHold v8.2.1260
Bram Moolenaar [Tue, 21 Jul 2020 17:44:47 +0000 (19:44 +0200)]
patch 8.2.1260: there is no good test for CursorHold

Problem:    There is no good test for CursorHold.
Solution:   Add a test.  Remove duplicated test. (Yegappan Lakshmanan,
            closes #6503

4 years agopatch 8.2.1259: empty group in 'tabline' may cause using an invalid pointer v8.2.1259
Bram Moolenaar [Tue, 21 Jul 2020 17:25:18 +0000 (19:25 +0200)]
patch 8.2.1259: empty group in 'tabline' may cause using an invalid pointer

Problem:    Empty group in 'tabline' may cause using an invalid pointer.
Solution:   Set the group start position. (closes #6505)

4 years agopatch 8.2.1258: CursorHold does not work well v8.2.1258
Bram Moolenaar [Mon, 20 Jul 2020 21:10:56 +0000 (23:10 +0200)]
patch 8.2.1258: CursorHold does not work well

Problem:    CursorHold does not work well.a (Shane-XB-Qian)
Solution:   Only restore did_cursorhold when using :normal.

4 years agopatch 8.2.1257: Vim9: list unpack doesn't work at the script level v8.2.1257
Bram Moolenaar [Mon, 20 Jul 2020 20:37:44 +0000 (22:37 +0200)]
patch 8.2.1257: Vim9: list unpack doesn't work at the script level

Problem:    Vim9: list unpack doesn't work at the script level.
Solution:   Detect unpack assignment better. (closes #6494)