Bram Moolenaar
3affe7a6c6
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.
v8.2.1481
2020-08-18 20:34:13 +02:00
Bram Moolenaar
e15eebd202
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 )
v8.2.1480
2020-08-18 19:11:38 +02:00
Bram Moolenaar
1d634542cf
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().
v8.2.1479
2020-08-18 13:41:50 +02:00
Bram Moolenaar
558813314d
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 )
v8.2.1478
2020-08-18 13:04:15 +02:00
Bram Moolenaar
f39397e515
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 )
v8.2.1477
2020-08-17 22:21:36 +02:00
Bram Moolenaar
aa9675a61d
patch 8.2.1476: filetype test fails on MS-Windows
...
Problem: Filetype test fails on MS-Windows.
Solution: Remove "^" from pattern.
v8.2.1476
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 )
v8.2.1475
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)
v8.2.1474
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.
v8.2.1473
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".
v8.2.1472
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 )
v8.2.1471
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 )
v8.2.1470
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 )
v8.2.1469
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 )
v8.2.1468
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 )
v8.2.1467
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.
v8.2.1466
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.
v8.2.1465
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.
v8.2.1464
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.
v8.2.1463
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.
v8.2.1462
2020-08-15 21:10:16 +02:00
Bram Moolenaar
3d1cde8a2f
Update runtime files.
2020-08-15 18:55:18 +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 )
v8.2.1461
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.
v8.2.1460
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 )
v8.2.1459
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)
v8.2.1458
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 )
v8.2.1457
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).
v8.2.1456
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.
v8.2.1455
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.
v8.2.1454
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.
v8.2.1453
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.
v8.2.1452
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.
v8.2.1451
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.
v8.2.1450
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.
v8.2.1449
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 )
v8.2.1448
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 )
v8.2.1447
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 )
v8.2.1446
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 )
v8.2.1445
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.
v8.2.1444
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 )
v8.2.1443
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 )
v8.2.1442
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.
v8.2.1441
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 )
v8.2.1440
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 )
v8.2.1439
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 )
v8.2.1438
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.
v8.2.1437
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().
v8.2.1436
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.
v8.2.1435
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.
v8.2.1434
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 )
v8.2.1433
2020-08-12 19:15:33 +02:00