]> granicus.if.org Git - vim/log
vim
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)

4 years agopatch 8.2.1256: Vim9: type wrong after getting dict item in lambda v8.2.1256
Bram Moolenaar [Mon, 20 Jul 2020 20:09:34 +0000 (22:09 +0200)]
patch 8.2.1256: Vim9: type wrong after getting dict item in lambda

Problem:    Vim9: type wrong after getting dict item in lambda.
Solution:   Set the type to "any" after enforcing dict type. (closes #6491)

4 years agopatch 8.2.1255: cannot use a lambda with quickfix functions v8.2.1255
Bram Moolenaar [Mon, 20 Jul 2020 19:31:32 +0000 (21:31 +0200)]
patch 8.2.1255: cannot use a lambda with quickfix functions

Problem:    Cannot use a lambda with quickfix functions.
Solution:   Add support for lambda. (Yegappan Lakshmanan, closes #6499)

4 years agopatch 8.2.1254: MS-Windows: regexp test may fail if 'iskeyword' set wrongly v8.2.1254
Bram Moolenaar [Mon, 20 Jul 2020 19:21:30 +0000 (21:21 +0200)]
patch 8.2.1254: MS-Windows: regexp test may fail if 'iskeyword' set wrongly

Problem:    MS-Windows: regexp test may fail if 'iskeyword' set wrongly.
Solution:   Override the 'iskeyword' value. (Taro Muraoka, closes #6502)

4 years agopatch 8.2.1253: CTRL-K in Insert mode gets <CursorHold> inserted v8.2.1253
Bram Moolenaar [Sun, 19 Jul 2020 21:06:05 +0000 (23:06 +0200)]
patch 8.2.1253: CTRL-K in Insert mode gets <CursorHold> inserted

Problem:    CTRL-K in Insert mode gets <CursorHold> inserted. (Roland
            Puntaier)
Solution:   Do not reset did_cursorhold, restore it. (closes #6447)

4 years agopatch 8.2.1252: ":marks" may show '< and '> mixed up v8.2.1252
Bram Moolenaar [Sun, 19 Jul 2020 20:09:06 +0000 (22:09 +0200)]
patch 8.2.1252: ":marks" may show '< and '> mixed up

Problem:    ":marks" may show '< and '> mixed up.
Solution:   Show the mark position as where '< and '> would jump.

4 years agopatch 8.2.1251: Vim9: warning for pointer usage, test failure undetected v8.2.1251
Bram Moolenaar [Sun, 19 Jul 2020 18:48:59 +0000 (20:48 +0200)]
patch 8.2.1251: Vim9: warning for pointer usage, test failure undetected

Problem:    Vim9: warning for pointer usage, test failure undetected.
Solution:   Fix pointer indirection.  Give error when executing function
            failed for any reason.  Fix instruction names.

4 years agopatch 8.2.1250: Vim9: cannot use the g:, b:, t: and w: namespaces v8.2.1250
Bram Moolenaar [Sun, 19 Jul 2020 17:47:35 +0000 (19:47 +0200)]
patch 8.2.1250: Vim9: cannot use the g:, b:, t: and w: namespaces

Problem:    Vim9: cannot use the g:, b:, t: and w: namespaces.
Solution:   Add instructions to push a dict for the namespaces. (closes #6480)

4 years agopatch 8.2.1249: Vim9: disassemble test fails v8.2.1249
Bram Moolenaar [Sun, 19 Jul 2020 16:38:37 +0000 (18:38 +0200)]
patch 8.2.1249: Vim9: disassemble test fails

Problem:    Vim9: disassemble test fails.
Solution:   Change INDEX to LISTINDEX.  Add test for STRINDEX.

4 years agopatch 8.2.1248: Netbeans test is flaky in the GUI v8.2.1248
Bram Moolenaar [Sun, 19 Jul 2020 16:24:32 +0000 (18:24 +0200)]
patch 8.2.1248: Netbeans test is flaky in the GUI

Problem:    Netbeans test is flaky in the GUI.
Solution:   Filter out geometry messages. (Taro Muraoka, closes #6487)

4 years agopatch 8.2.1247: Vim9: cannot index a character in a string v8.2.1247
Bram Moolenaar [Sun, 19 Jul 2020 15:55:44 +0000 (17:55 +0200)]
patch 8.2.1247: Vim9: cannot index a character in a string

Problem:    Vim9: cannot index a character in a string.
Solution:   Add ISN_STRINDEX instruction. (closes #6478)

4 years agopatch 8.2.1246: Vim9: comment after assignment doesn't work v8.2.1246
Bram Moolenaar [Sun, 19 Jul 2020 15:17:02 +0000 (17:17 +0200)]
patch 8.2.1246: Vim9: comment after assignment doesn't work

Problem:    Vim9: comment after assignment doesn't work.
Solution:   Skip over white space. (closes #6481)

4 years agopatch 8.2.1245: build failure in tiny version v8.2.1245
Bram Moolenaar [Sun, 19 Jul 2020 14:32:09 +0000 (16:32 +0200)]
patch 8.2.1245: build failure in tiny version

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

4 years agopatch 8.2.1244: Vim9: in lambda index assumes a list v8.2.1244
Bram Moolenaar [Sun, 19 Jul 2020 13:49:49 +0000 (15:49 +0200)]
patch 8.2.1244: Vim9: in lambda index assumes a list

Problem:    Vim9: in lambda index assumes a list.
Solution:   Use the value type to decide about list or dict. (closes #6479)

4 years agopatch 8.2.1243: Vim9: cannot have a comment line halfway a list v8.2.1243
Bram Moolenaar [Sun, 19 Jul 2020 12:41:58 +0000 (14:41 +0200)]
patch 8.2.1243: Vim9: cannot have a comment line halfway a list

Problem:    Vim9: cannot have a comment or empty line halfway a list at script
            level.
Solution:   Skip more than one line if needed.

4 years agopatch 8.2.1242: Vim9: no error if calling a function with wrong type v8.2.1242
Bram Moolenaar [Sun, 19 Jul 2020 12:03:09 +0000 (14:03 +0200)]
patch 8.2.1242: Vim9: no error if calling a function with wrong type

Problem:    Vim9: no error if calling a function with wrong argument type.
Solution:   Check types of arguments. (closes #6469)

4 years agopatch 8.2.1241: cannot use getbufinfo() as a method v8.2.1241
Bram Moolenaar [Sat, 18 Jul 2020 20:24:22 +0000 (22:24 +0200)]
patch 8.2.1241: cannot use getbufinfo() as a method

Problem:    Cannot use getbufinfo() as a method.
Solution:   Support using getbufinfo() as a method. (closes #6458)

4 years agopatch 8.2.1240: GUI tests sometimes fail because of translations v8.2.1240
Bram Moolenaar [Sat, 18 Jul 2020 20:03:11 +0000 (22:03 +0200)]
patch 8.2.1240: GUI tests sometimes fail because of translations

Problem:    GUI tests sometimes fail because of translations.
Solution:   Reload the menus without translation. (Taro Muraoka, closes #6486)

4 years agopatch 8.2.1239: "maxwidth" in 'completepopup' not obeyed v8.2.1239
Bram Moolenaar [Sat, 18 Jul 2020 19:40:41 +0000 (21:40 +0200)]
patch 8.2.1239: "maxwidth" in 'completepopup' not obeyed

Problem:    "maxwidth" in 'completepopup' not obeyed. (Jay Sitter)
Solution:   Add separate field for value from option. (closes #6470)

4 years agopatch 8.2.1238: Vim9: a few remaining errors not caught by try/catch v8.2.1238
Bram Moolenaar [Sat, 18 Jul 2020 16:13:02 +0000 (18:13 +0200)]
patch 8.2.1238: Vim9: a few remaining errors not caught by try/catch

Problem:    Vim9: a few remaining errors not caught by try/catch.
Solution:   Do not bail out if an error is inside try/catch.

4 years agopatch 8.2.1237: changing 'completepopup' after opening popup has no effect v8.2.1237
Bram Moolenaar [Sat, 18 Jul 2020 14:07:16 +0000 (16:07 +0200)]
patch 8.2.1237: changing 'completepopup' after opening popup has no effect

Problem:    Changing 'completepopup' after opening a popup has no effect. (Jay
            Sitter)
Solution:   Close the popup when the options are changed. (closes #6471)

4 years agopatch 8.2.1236: Vim9: a few errors not caught by try/catch v8.2.1236
Bram Moolenaar [Sat, 18 Jul 2020 13:17:02 +0000 (15:17 +0200)]
patch 8.2.1236: Vim9: a few errors not caught by try/catch

Problem:    Vim9: a few errors not caught by try/catch.
Solution:   Do not bail out if an error is inside try/catch.  Fix that a not
            matching catch doesn't jump to :endtry.

4 years agopatch 8.2.1235: Not all mouse codes covered by tests v8.2.1235
Bram Moolenaar [Sat, 18 Jul 2020 10:59:19 +0000 (12:59 +0200)]
patch 8.2.1235: Not all mouse codes covered by tests

Problem:    Not all mouse codes covered by tests.
Solution:   Add more tests for the mouse. (Yegappan Lakshmanan, closes #6472)

4 years agopatch 8.2.1234: Lua build problem with old compiler v8.2.1234
Bram Moolenaar [Sat, 18 Jul 2020 10:50:35 +0000 (12:50 +0200)]
patch 8.2.1234: Lua build problem with old compiler

Problem:    Lua build problem with old compiler.
Solution:   Move declarations to start of the block. (Taro Muraoka,
            closes #6477)

4 years agopatch 8.2.1233: Vim9: various errors not caught by try/catch v8.2.1233
Bram Moolenaar [Fri, 17 Jul 2020 21:03:17 +0000 (23:03 +0200)]
patch 8.2.1233: Vim9: various errors not caught by try/catch

Problem:    Vim9: various errors not caught by try/catch.
Solution:   Do not bail out if an error is inside try/catch.

4 years agopatch 8.2.1232: MS-Windows GUI: Snap cancelled by split command v8.2.1232
Bram Moolenaar [Fri, 17 Jul 2020 20:26:53 +0000 (22:26 +0200)]
patch 8.2.1232: MS-Windows GUI: Snap cancelled by split command

Problem:    MS-Windows GUI: Snap cancelled by split command.
Solution:   Do not cancel Snap when splitting a window. (Ken Takata,
            closes #6467)

4 years agopatch 8.2.1231: MS-Windows: GUI code can be cleaned up v8.2.1231
Bram Moolenaar [Fri, 17 Jul 2020 20:17:03 +0000 (22:17 +0200)]
patch 8.2.1231: MS-Windows: GUI code can be cleaned up

Problem:    MS-Windows: GUI code can be cleaned up.
Solution:   Do a bit of cleaning up. (Ken Takata, closes #6465)

4 years agopatch 8.2.1230: Vim9: list index error not caught by try/catch v8.2.1230
Bram Moolenaar [Fri, 17 Jul 2020 20:06:44 +0000 (22:06 +0200)]
patch 8.2.1230: Vim9: list index error not caught by try/catch

Problem:    Vim9: list index error not caught by try/catch.
Solution:   Do not bail out if an error is inside try/catch. (closes #6462)

4 years agopatch 8.2.1229: build error without the eval feature v8.2.1229
Bram Moolenaar [Fri, 17 Jul 2020 18:47:51 +0000 (20:47 +0200)]
patch 8.2.1229: build error without the eval feature

Problem:    Build error without the eval feature.
Solution:   Declare starts_with_colon. Make function local.

4 years agopatch 8.2.1228: scrollbars not flush against the window edges when maximised v8.2.1228
Bram Moolenaar [Fri, 17 Jul 2020 18:43:43 +0000 (20:43 +0200)]
patch 8.2.1228: scrollbars not flush against the window edges when maximised

Problem:    Scrollbars not flush against the window edges when maximised.
Solution:   Add padding. (Ken Takata, closes #5602, closes #6466)

4 years agopatch 8.2.1227: Vim9: allowing both quoted and # comments is confusing v8.2.1227
Bram Moolenaar [Fri, 17 Jul 2020 18:36:00 +0000 (20:36 +0200)]
patch 8.2.1227: Vim9: allowing both quoted and # comments is confusing

Problem:    Vim9: allowing both quoted and # comments is confusing.
Solution:   Only support # comments in Vim9 script.

4 years agopatch 8.2.1226: MS-Windows: windows positioning wrong depending on taskbar v8.2.1226
Bram Moolenaar [Thu, 16 Jul 2020 20:30:31 +0000 (22:30 +0200)]
patch 8.2.1226: MS-Windows: windows positioning wrong depending on taskbar

Problem:    MS-Windows: windows positioning wrong when the taskbar is placed
            at the top or left of the screen.
Solution:   Use GetWindowRect and MoveWindow APIs. (Yukihiro Nakadaira,
            Ken Takata, closes #6455)