Bram Moolenaar
aa9675a61d
patch 8.2.1476: filetype test fails on MS-Windows
...
Problem: Filetype test fails on MS-Windows.
Solution: Remove "^" from pattern.
2020-08-17 21:57:09 +02:00
Bram Moolenaar
36967b32fd
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 )
2020-08-17 21:41:02 +02:00
Bram Moolenaar
624b6eaf20
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)
2020-08-17 21:17:25 +02:00
Bram Moolenaar
021bda5671
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.
2020-08-17 21:07:22 +02:00
Bram Moolenaar
7b22117c4e
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".
2020-08-17 19:34:10 +02:00
Bram Moolenaar
241572794f
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 )
2020-08-16 22:50:01 +02:00
Bram Moolenaar
c0f8823ee4
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 )
2020-08-16 21:51:49 +02:00
Bram Moolenaar
0aae4809fd
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 )
2020-08-16 21:29:05 +02:00
Bram Moolenaar
f923571ec1
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 )
2020-08-16 18:42:53 +02:00
Bram Moolenaar
e5abf7af08
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 )
2020-08-16 18:29:35 +02:00
Bram Moolenaar
cc673e746a
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.
2020-08-16 17:33:35 +02:00
Bram Moolenaar
56acb0943e
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.
2020-08-16 14:48:19 +02:00
Bram Moolenaar
829ac868b7
patch 8.2.1464: Vim9: build warning for unused variable
...
Problem: Vim9: build warning for unused variable.
Solution: Delete the variable declaration.
2020-08-15 22:48:48 +02:00
Bram Moolenaar
ed5918771f
patch 8.2.1463: Vim9: list slice not supported yet
...
Problem: Vim9: list slice not supported yet.
Solution: Add support for list slicing.
2020-08-15 22:14:53 +02:00
Bram Moolenaar
11107bab7e
patch 8.2.1462: Vim9: string slice not supported yet
...
Problem: Vim9: string slice not supported yet.
Solution: Add support for string slicing.
2020-08-15 21:10:16 +02:00
Bram Moolenaar
e3c37d8ebf
patch 8.2.1461: Vim9: string indexes are counted in bytes
...
Problem: Vim9: string indexes are counted in bytes.
Solution: Use character indexes. (closes #6574 )
2020-08-15 18:39:05 +02:00
Bram Moolenaar
451c2e3536
patch 8.2.1460: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more messages into errors.h.
2020-08-15 16:33:28 +02:00
Bram Moolenaar
53b29e4845
patch 8.2.1459: Vim9: declaring script var in script does not infer the type
...
Problem: Vim9: declaring ascript variable at the script level does not
infer the type.
Solution: Get the type from the value. (closes #6716 )
2020-08-15 14:31:20 +02:00
Bram Moolenaar
9a5c553f79
patch 8.2.1458: .gawk files not recognized
...
Problem: .gawk files not recognized.
Solution: Recognize .gawk files. (Doug Kearns)
2020-08-15 14:07:23 +02:00
Bram Moolenaar
793dcc540d
patch 8.2.1457: Vim9: the output of :disassemble cannot be interrupted
...
Problem: Vim9: the output of :disassemble cannot be interrupted.
Solution: Check got_int. (closes #6715 )
2020-08-15 13:49:17 +02:00
Bram Moolenaar
1623619119
patch 8.2.1456: MS-Windows: test files are not deleted
...
Problem: MS-Windows: test files are not deleted.
Solution: use "del" instead of $(DEL).
2020-08-14 23:08:22 +02:00
Bram Moolenaar
d1103587cf
patch 8.2.1455: Vim9: crash when using typecast before constant
...
Problem: Vim9: crash when using typecast before constant.
Solution: Generate constant before checking type. Add tets.
2020-08-14 22:44:25 +02:00
Bram Moolenaar
79e8db9a21
patch 8.2.1454: Vim9: failure invoking lambda with wrong arguments
...
Problem: Vim9: failure invoking lambda with wrong arguments.
Solution: Handle invalid arguments. Add a test.
2020-08-14 22:16:33 +02:00
Bram Moolenaar
8de2f44ac6
patch 8.2.1453: Vim9: failure to compile lambda not tested
...
Problem: Vim9: failure to compile lambda not tested.
Solution: Add a test case.
2020-08-14 21:49:08 +02:00
Bram Moolenaar
8d56622944
patch 8.2.1452: Vim9: dead code in to_name_end()
...
Problem: Vim9: dead code in to_name_end().
Solution: Remove check for lambda and dict, it won't be used.
2020-08-14 21:42:54 +02:00
Bram Moolenaar
41fab3eac8
patch 8.2.1451: Vim9: list type at script level only uses first item
...
Problem: Vim9: list type at script level only uses first item.
Solution: Use all members, like in a compiled function. (closes #6712 )
Also for dictionary.
2020-08-14 21:27:37 +02:00
Bram Moolenaar
7d6997015d
patch 8.2.1450: Vim9: no check that script-local items don't become global
...
Problem: Vim9: no check that script-local items don't become global.
Solution: Add a test.
2020-08-14 20:52:28 +02:00
Bram Moolenaar
32a23ac615
patch 8.2.1449: some test makefiles delete files that are not generated
...
Problem: Some test makefiles delete files that are not generated.
Solution: Remove the deletion commands.
2020-08-14 19:20:23 +02:00
Bram Moolenaar
4ac97f4761
patch 8.2.1448: test 77a for VMS depends on small.vim which does not exist
...
Problem: Test 77a for VMS depends on small.vim which does not exist.
Solution: Use the 'silent while 0" trick. (issue #6696 )
2020-08-14 19:11:03 +02:00
Bram Moolenaar
32f335f75c
patch 8.2.1447: Vim9: return type of keys() is list<any>
...
Problem: Vim9: return type of keys() is list<any>.
Solution: Should be list<string>. (closes #6711 )
2020-08-14 18:56:45 +02:00
Bram Moolenaar
7517ffdbb5
patch 8.2.1446: Vim9: line number in error message is not correct
...
Problem: Vim9: line number in error message is not correct.
Solution: Set SOURCING_LNUM before calling emsg(). (closes #6708 )
2020-08-14 18:35:07 +02:00
Bram Moolenaar
c4ce36d486
patch 8.2.1445: Vim9: function expanded name is cleared when sourcing again
...
Problem: Vim9: function expanded name is cleared when sourcing a script
again.
Solution: Only clear the expanded name when deleting the function.
(closes #6707 )
2020-08-14 17:08:15 +02:00
Bram Moolenaar
bc4c505166
patch 8.2.1444: error messages are spread out and names can be confusing
...
Problem: Error messages are spread out and names can be confusing.
Solution: Start moving error messages to a separate file and use clear
names.
2020-08-13 22:47:35 +02:00
Bram Moolenaar
cdd70f09a5
patch 8.2.1443: Vim9: crash when interrupting a nested :def function
...
Problem: Vim9: crash when interrupting a nested :def function.
Solution: Push a dummy return value onto the stack. (closes #6701 )
2020-08-13 21:40:18 +02:00
Bram Moolenaar
be7529e889
patch 8.2.1442: outdated references to the Mac Carbon GUI
...
Problem: Outdated references to the Mac Carbon GUI.
Solution: Remove or update references. (Yee Cheng Chin, closes #6703 )
2020-08-13 21:05:39 +02:00
Bram Moolenaar
c771908681
patch 8.2.1441: running tests in tiny version gives error for summarize.vim
...
Problem: Running tests in tiny version gives error for summarize.vim.
Solution: Set 'cpoptions' to allow for line continuation. Restore
redirecting test output to /dev/null.
2020-08-13 19:42:39 +02:00
Bram Moolenaar
16c6232cad
patch 8.2.1440: debugger code insufficiently tested
...
Problem: Debugger code insufficiently tested.
Solution: Add a few more tests. (Yegappan Lakshmanan, closes #6700 )
2020-08-13 19:20:04 +02:00
Bram Moolenaar
b96a32ef1a
patch 8.2.1439: tiny and small builds have no test coverage
...
Problem: Tiny and small builds have no test coverage.
Solution: Restore tests that do not depend on the +eval feature.
(Ken Takata, closes #6696 )
2020-08-13 18:59:55 +02:00
Bram Moolenaar
7ac616cb0a
patch 8.2.1438: missing tests for interrupting script execution from debugger
...
Problem: Missing tests for interrupting script execution from debugger.
Solution: Add tests. (Yegappan Lakshmanan, closes #6697 )
2020-08-12 22:22:09 +02:00
Bram Moolenaar
c9edd6b582
patch 8.2.1437: Vim9: 'statusline' is evaluated using Vim9 script syntax
...
Problem: Vim9: 'statusline' is evaluated using Vim9 script syntax.
Solution: Always use legacy script syntax.
2020-08-12 22:18:23 +02:00
Bram Moolenaar
66e0014ba6
patch 8.2.1436: function implementing :substitute has unexpected name
...
Problem: Function implementing :substitute has unexpected name.
Solution: Rename from do_sub() to ex_substitute().
2020-08-12 21:58:12 +02:00
Bram Moolenaar
418f1df547
patch 8.2.1435: Vim9: always converting to string for ".." leads to mistakes
...
Problem: Vim9: always converting to string for ".." leads to mistakes.
Solution: Only automatically convert simple types.
2020-08-12 21:34:49 +02:00
Bram Moolenaar
fd77748df2
patch 8.2.1434: Vim9: crash when lambda uses outer function argument
...
Problem: Vim9: crash when lambda uses outer function argument.
Solution: Set the flag that the outer context is used.
2020-08-12 19:42:01 +02:00
Bram Moolenaar
ba60cc45e7
patch 8.2.1433: Vim9: cannot mingle comments in multi-line lambda
...
Problem: Vim9: cannot mingle comments in multi-line lambda.
Solution: Skip over NULL lines. (closes #6694 )
2020-08-12 19:15:33 +02:00
Bram Moolenaar
6d91bcb4d2
patch 8.2.1432: various inconsistencies in test files
...
Problem: Various inconsistencies in test files.
Solution: Add modelines where they were missing. Use Check commands instead
of silently skipping over tests. Adjust indents and comments.
(Ken Takata, closes #6695 )
2020-08-12 18:50:36 +02:00
Bram Moolenaar
c3d6e8a46a
patch 8.2.1431: Vim9: no error for white space before comma in dict
...
Problem: Vim9: no error for white space before comma in dict.
Solution: Check for extra white space. (closes #6674 )
2020-08-12 18:34:28 +02:00
Bram Moolenaar
db199216e8
patch 8.2.1430: Vim9: error for missing comma instead of extra white space
...
Problem: Vim9: error for missing comma instead of extra white space.
Solution: Check if comma can be found after white space. (closes #6668 )
Also check for extra white space in literal dict. (closes #6670 )
2020-08-12 18:01:53 +02:00
Bram Moolenaar
17a836cbee
patch 8.2.1429: Vim9: no error for missing white after : in dict
...
Problem: Vim9: no error for missing white after : in dict.
Solution: Check for white space. (closes #6671 ) Also check that there is no
white before the :.
2020-08-12 17:35:58 +02:00
Bram Moolenaar
ed677f5587
patch 8.2.1428: Vim9: :def function does not abort on nested function error
...
Problem: Vim9: :def function does not abort on nested function error.
Solution: Check whether an error message was given. (closes #6691 )
2020-08-12 16:38:10 +02:00
Bram Moolenaar
7c5ad34878
patch 8.2.1427: Vim9: cannot use a range with marks in :def function
...
Problem: Vim9: cannot use a range with marks in :def function.
Solution: Parse range after colon. (closes #6686 )
2020-08-12 15:48:55 +02:00