Bram Moolenaar
2547aa930b
Update runtime files.
2020-07-26 17:00:44 +02:00
Bram Moolenaar
d3bb6a82a5
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.
2020-07-26 15:55:25 +02:00
Bram Moolenaar
cb4f69c2fd
patch 8.2.1298: compiler warning for unused argument in small version
...
Problem: Compiler warning for unused argument in small version.
Solution: Add UNUSED.
2020-07-26 15:51:06 +02:00
Bram Moolenaar
a5d0423fa1
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.
2020-07-26 15:37:02 +02:00
Bram Moolenaar
d66cdcd43a
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 )
2020-07-26 13:27:16 +02:00
Bram Moolenaar
7d40b8a532
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 )
2020-07-26 12:52:59 +02:00
Bram Moolenaar
37394ff752
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 )
2020-07-25 19:38:18 +02:00
Bram Moolenaar
2d6b20d6a9
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 )
2020-07-25 19:30:59 +02:00
Bram Moolenaar
2afc3b4f77
patch 8.2.1292: AIDL filetype not recognized
...
Problem: AIDL filetype not recognized.
Solution: Add filetype detection. (Dominique Pellé, closes #6533 )
2020-07-25 16:53:12 +02:00
Bram Moolenaar
24aa48b7a2
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 )
2020-07-25 16:33:02 +02:00
Bram Moolenaar
925e9fd633
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.
2020-07-25 15:41:11 +02:00
Bram Moolenaar
c841afff6a
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 )
2020-07-25 14:11:55 +02:00
Bram Moolenaar
13e12b8a3c
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 )
2020-07-24 18:47:22 +02:00
Bram Moolenaar
40f4f7a48c
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 )
2020-07-23 22:41:43 +02:00
Bram Moolenaar
43e969d3f9
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 )
2020-07-23 21:14:43 +02:00
Bram Moolenaar
b8070e3173
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 )
2020-07-23 20:56:04 +02:00
Bram Moolenaar
bfba8651a5
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.
2020-07-23 20:09:10 +02:00
Bram Moolenaar
637cd7d1c9
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.
2020-07-23 19:06:23 +02:00
Bram Moolenaar
6c4bfe4b31
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.
2020-07-23 18:26:30 +02:00
Bram Moolenaar
2d06bfde29
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.
2020-07-23 17:16:18 +02:00
Bram Moolenaar
8930caaa1a
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.
2020-07-23 16:37:03 +02:00
Bram Moolenaar
8d5f6af5e5
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.
2020-07-23 15:50:40 +02:00
Bram Moolenaar
dd1a9af00f
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 )
2020-07-23 15:38:03 +02:00
Bram Moolenaar
7a87b4e3fe
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.
2020-07-23 14:59:07 +02:00
Bram Moolenaar
4cc45a3673
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 )
2020-07-23 14:51:02 +02:00
Bram Moolenaar
5a67c37a55
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 )
2020-07-23 14:39:47 +02:00
Bram Moolenaar
63be3d4ba0
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 )
2020-07-23 13:11:37 +02:00
Bram Moolenaar
c69950ac17
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 )
2020-07-22 22:23:40 +02:00
Bram Moolenaar
4cdb13ce81
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 )
2020-07-22 21:45:14 +02:00
Bram Moolenaar
0f60e80f9b
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 )
2020-07-22 20:16:11 +02:00
Bram Moolenaar
2f1980f7b7
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 )
2020-07-22 19:30:06 +02:00
Bram Moolenaar
054f14bbe5
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 )
2020-07-22 19:11:19 +02:00
Bram Moolenaar
e7e4838f25
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 )
2020-07-22 18:17:08 +02:00
Bram Moolenaar
2690b5aed8
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 )
2020-07-22 18:14:58 +02:00
Bram Moolenaar
bc6fcbe4ce
patch 8.2.1266: Makefile preference were accidentally included
...
Problem: Makefile preference were accidentally included.
Solution: Revert the Makefile changes.
2020-07-21 22:34:41 +02:00
Bram Moolenaar
7d5e744162
patch 8.2.1265: crash with EXITFREE when split() fails
...
Problem: Crash with EXITFREE when split() fails.
Solution: Restore 'cpoptions'.
2020-07-21 22:25:51 +02:00
Bram Moolenaar
420952175a
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.
2020-07-21 21:48:58 +02:00
Bram Moolenaar
c71f36a889
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 )
2020-07-21 21:31:00 +02:00
Bram Moolenaar
f868ba8903
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 )
2020-07-21 21:07:20 +02:00
Bram Moolenaar
c7db57788b
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.
2020-07-21 20:55:50 +02:00
Bram Moolenaar
7591116acf
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
2020-07-21 19:44:47 +02:00
Bram Moolenaar
f56c95fdad
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 )
2020-07-21 19:25:18 +02:00
Bram Moolenaar
08815a1d03
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.
2020-07-20 23:10:56 +02:00
Bram Moolenaar
b31be3f909
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 )
2020-07-20 22:37:44 +02:00
Bram Moolenaar
7892b953e0
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 )
2020-07-20 22:09:34 +02:00
Bram Moolenaar
d43906d2e5
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 )
2020-07-20 21:31:32 +02:00
Bram Moolenaar
470adb827f
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 )
2020-07-20 21:21:30 +02:00
Bram Moolenaar
b146e01a7e
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 )
2020-07-19 23:06:05 +02:00
Bram Moolenaar
54c3fcd852
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.
2020-07-19 22:09:06 +02:00
Bram Moolenaar
682d0a1546
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.
2020-07-19 20:48:59 +02:00