Bram Moolenaar
82be4849ee
Update runtime files.
2021-01-11 19:40:15 +01:00
Bram Moolenaar
48e11c1054
patch 8.2.2328: some test files may not be deleted
...
Problem: Some test files may not be deleted.
Solution: Add a delete() call, correct name. (Dominique Pellé, closes #7654 )
2021-01-11 18:47:00 +01:00
Bram Moolenaar
16a6f91ccb
patch 8.2.2327: debugging code included
...
Problem: Debugging code included.
Solution: Remove the debugging code.
2021-01-10 23:58:28 +01:00
Bram Moolenaar
086ae06862
patch 8.2.2326: build error with +eval feature but without +spell
...
Problem: Build error with +eval feature but without +spell.
Solution: Adjust #ifdef. (John Marriott)
2021-01-10 22:56:36 +01:00
Bram Moolenaar
75ab91ff34
patch 8.2.2325: Vim9: crash if map() changes the item type
...
Problem: Vim9: crash if map() changes the item type.
Solution: Check that the item type is still OK. (closes #7652 )
Fix problem with mapnew() on range list.
2021-01-10 22:42:50 +01:00
Bram Moolenaar
6f02b00bb0
patch 8.2.2324: not easy to get mark en cursor posotion by character count
...
Problem: Not easy to get mark en cursor posotion by character count.
Solution: Add functions that use character index. (Yegappan Lakshmanan,
closes #7648 )
2021-01-10 20:22:54 +01:00
Bram Moolenaar
31a11b942a
patch 8.2.2323: Vim9: error when inferring type from empty dict/list
...
Problem: Vim9: error when inferring type from empty dict/list.
Solution: When the member is t_unknown use t_any. (closes #7009 )
2021-01-10 19:23:27 +01:00
Bram Moolenaar
0186e58639
patch 8.2.2322: Vim9: closure nested limiting to one level
...
Problem: Vim9: closure nested limiting to one level.
Solution: Add outer_T. Also make STOREOUTER work.
2021-01-10 18:33:11 +01:00
Bram Moolenaar
ab360526ef
patch 8.2.2321: Vim9: cannot nest closures
...
Problem: Vim9: cannot nest closures.
Solution: Add the nesting level to ISN_LOADOUTER and ISN_STOREOUTER.
(closes #7150 , closes #7635 )
2021-01-10 14:02:28 +01:00
Bram Moolenaar
cff40ff986
patch 8.2.2320: Vim9: no error for comparing bool with string
...
Problem: Vim9: no error for comparing bool with string.
Solution: Check for wrong types when comparing. (closes #7639 )
2021-01-09 16:21:37 +01:00
Bram Moolenaar
657137ca48
patch 8.2.2319: "exptype_T" can be read as "expected type"
...
Problem: "exptype_T" can be read as "expected type".
Solution: Rename to "exprtype_T", expression type.
2021-01-09 15:45:23 +01:00
Bram Moolenaar
e7525c5520
patch 8.2.2318: Vim9: string and list index work differently
...
Problem: Vim9: string and list index work differently.
Solution: Make string index work like list index. (closes #7643 )
2021-01-09 13:20:37 +01:00
Bram Moolenaar
9e0f883f89
patch 8.2.2317: Vim9: command modifier before list unpack doesn't work
...
Problem: Vim9: command modifier before list unpack doesn't work.
Solution: Only recognize "[" directly after the name. (closes #7641 )
2021-01-09 12:09:22 +01:00
Bram Moolenaar
b657198cb3
patch 8.2.2316: Vim9: cannot list a lambda function
...
Problem: Vim9: cannot list a lambda function.
Solution: Support the <lambda>9 notation, like :disassemble. (closes #7634 )
2021-01-08 22:24:19 +01:00
Bram Moolenaar
832ea89ca9
patch 8.2.2315: Vim9: "enddef" as dict key misintepreted as function end
...
Problem: Vim9: "enddef" as dict key misintepreted as function end.
Solution: Check for following colon. (closes #7640 )
2021-01-08 21:55:26 +01:00
Bram Moolenaar
299f3036ec
patch 8.2.2314: Vim9: returning zero takes two instructions
...
Problem: Vim9: returning zero takes two instructions.
Solution: Add ISN_RETURN_ZERO.
2021-01-08 20:53:09 +01:00
Bram Moolenaar
ece0b87c0f
patch 8.2.2313: Vim9: using uninitialized field when parsing range
...
Problem: Vim9: using uninitialized field when parsing range. ":silent!" not
respected when parsing range fails.
Solution: Initialize ea.skip. On pattern failure handle it like an error.
(closes #7636 )
2021-01-08 20:40:45 +01:00
Bram Moolenaar
467b59c2eb
patch 8.2.2312: build failure with Ruby 3.0 and 32 bits
...
Problem: Build failure with Ruby 3.0 and 32 bits.
Solution: Add #ifdef. (closes #7638 )
2021-01-08 19:31:39 +01:00
Bram Moolenaar
17126b1396
patch 8.2.2311: Vim9: cannot assign to variable that shadows command modifier
...
Problem: Vim9: cannot assign to a variable that shadows a command modifier.
Solution: Check for assignment after possible command modifier.
(closes #7632 )
2021-01-07 22:03:02 +01:00
Bram Moolenaar
43b69b39ac
patch 8.2.2310: Vim9: winsaveview() return type is too generic
...
Problem: Vim9: winsaveview() return type is too generic.
Solution: use dict<number> instead of dict<any>. (closes #7626 )
2021-01-07 20:23:33 +01:00
Bram Moolenaar
c37b655443
patch 8.2.2309: 0o777 not recognized as octal
...
Problem: 0o777 not recognized as octal.
Solution: Use vim_isodigit(). (Ken Takata, closes #7633 , closes #7631 )
2021-01-07 19:36:30 +01:00
Bram Moolenaar
328eac2b5d
patch 8.2.2308: Vim9: no error when assigning lambda to funcref
...
Problem: Vim9: no error when assigning lambda to funcref without return
value.
Solution: Default return value to "any". (closes #7629 )
2021-01-07 19:23:08 +01:00
Bram Moolenaar
ebbf11c119
patch 8.2.2307: a shell command in the vimrc causes terminal output
...
Problem: A shell command in the vimrc causes terminal output.
Solution: Do not call starttermcap() after a shell command if the termcap
wasn't active before.
2021-01-07 14:45:03 +01:00
Bram Moolenaar
32b3f82010
patch 8.2.2306: Vim9: when using function reference type is not checked
...
Problem: Vim9: when using function reference type is not checked.
Solution: When using a function reference lookup the type and check the
argument types. (issue #7629 )
2021-01-06 21:59:39 +01:00
Bram Moolenaar
b23279d7a2
patch 8.2.2305: Vim9: "++var" and "--var" are silently accepted
...
Problem: Vim9: "++var" and "--var" are silently accepted.
Solution: Give an error message.
2021-01-05 22:08:20 +01:00
Bram Moolenaar
0acbf5ae66
patch 8.2.2304: Vim9: no test for unletting an imported variable
...
Problem: Vim9: no test for unletting an imported variable.
Solution: Add a test. Fix line number in error.
2021-01-05 20:58:25 +01:00
Bram Moolenaar
ecac591cce
patch 8.2.2303: Vim9: backtick expansion doesn't work for :foldopen
...
Problem: Vim9: backtick expansion doesn't work for :foldopen.
Solution: Do recognize backtick expansion. (closes #7621 )
2021-01-05 19:23:28 +01:00
Bram Moolenaar
a79925a0a8
patch 8.2.2302: Vim9: using an option value may use uninitialized memory
...
Problem: Vim9: using an option value may use uninitialized memory.
Solution: Clear v_lock. (closes #7620 )
2021-01-05 17:50:28 +01:00
Bram Moolenaar
752fc692ac
patch 8.2.2301: Vim9: cannot unlet a dict or list item
...
Problem: Vim9: cannot unlet a dict or list item.
Solution: Add ISN_UNLETINDEX. Refactor assignment code to use for unlet.
2021-01-04 21:57:11 +01:00
Bram Moolenaar
d62d87d8f3
patch 8.2.2300: Vim9: wrong order on type stack when using dict
...
Problem: Vim9: wrong order on type stack when using dict.
Solution: Generate constants before a dict. (closes #7619 )
2021-01-04 17:40:12 +01:00
Bram Moolenaar
d1510ee946
patch 8.2.2299: Vim9: invalid memory access making error message flaky
...
Problem: Vim9: invalid memory access making error message flaky.
Solution: Do not check cmd_argt for CMD_USER. (issue #7467 )
2021-01-04 16:15:58 +01:00
Bram Moolenaar
cef1270dec
patch 8.2.2298: Vim9: comment right after "(" of function not recognized
...
Problem: Vim9: comment right after "(" of function not recognized.
Solution: Do not skip over white space before calling get_function_args().
(closes #7613 )
2021-01-04 14:09:43 +01:00
Bram Moolenaar
0ea0440865
patch 8.2.2297: Vim9: cannot set 'number' to a boolean value
...
Problem: Vim9: cannot set 'number' to a boolean value.
Solution: Use tv_get_bool(). (closes #7615 )
2021-01-04 13:37:54 +01:00
Bram Moolenaar
014f698cb6
patch 8.2.2296: cannot use CTRL-N and CTRL-P in a popup menu
...
Problem: Cannot use CTRL-N and CTRL-P in a popup menu.
Solution: Use CTRL-N like <Down> and CTRL-P like <Up>. (closes #7614 )
2021-01-04 13:18:30 +01:00
Bram Moolenaar
d93a7fc1a9
patch 8.2.2295: incsearch does not detect empty pattern properly
...
Problem: Incsearch does not detect empty pattern properly.
Solution: Return magic state when skipping over a pattern. (Christian
Brabandt, closes #7612 , closes #6420 )
2021-01-04 12:42:13 +01:00
Bram Moolenaar
82c38fe508
patch 8.2.2294: VMS: a few remaining problems
...
Problem: VMS: a few remaining problems.
Solution: Add VMS specific changes. Add Lua support. (Zoltan Arpadffy)
2021-01-04 10:47:26 +01:00
Bram Moolenaar
bb0956fc65
patch 8.2.2293: build failure with Motif
...
Problem: Build failure with Motif. (Tony Mechelynck)
Solution: Use empty_option instead of empty_options.
2021-01-03 22:12:15 +01:00
Bram Moolenaar
5f63938447
patch 8.2.2292: Vim: expr test fails
...
Problem: Vim: expr test fails.
Solution: Add missing part of "null" support.
2021-01-03 22:05:19 +01:00
Bram Moolenaar
6797782127
patch 8.2.2291: Vim9: cannot use "null" for v:null
...
Problem: Vim9: cannot use "null" for v:null.
Solution: Support "null" like "true" and "false". (closes #7495 )
2021-01-03 21:53:53 +01:00
Bram Moolenaar
2ef951dd31
patch 8.2.2290: Vim9: unlet of global variable cannot be compiled
...
Problem: Vim9: unlet of global variable cannot be compiled.
Solution: Skip over variables that might be defined later. Give an error if
a subscript is found. (closes #7585 )
2021-01-03 20:55:26 +01:00
Bram Moolenaar
e5a2dc87fd
patch 8.2.2289: Vim9: 'cpo' can become empty
...
Problem: Vim9: 'cpo' can become empty.
Solution: Use empty_option instead of an empty string. Update quickfix
buffer after restoring 'cpo'. (closes #7608 )
2021-01-03 19:52:05 +01:00
Bram Moolenaar
5afd081cd3
patch 8.2.2288: Vim9: line break and comment not always skipped
...
Problem: Vim9: line break and comment not always skipped.
Solution: Skip over white space and then line break more consistently.
(closes #7610 )
2021-01-03 18:33:13 +01:00
Bram Moolenaar
cec77d4530
patch 8.2.2287: sort test fails when locale is French Canadian
...
Problem: Sort test fails when locale is French Canadian.
Solution: Expect a different sort order. (Dominique Pellé, closes #7609 )
2021-01-03 17:39:28 +01:00
Bram Moolenaar
fefa6c347e
patch 8.2.2286: sort test fails when locale is Canadian English
...
Problem: Sort test fails when locale is Canadian English. (Neil H Watson)
Solution: Expect a different sort order. (closes #7609 )
2021-01-03 16:18:04 +01:00
Bram Moolenaar
b0d8182fa3
patch 8.2.2285: Vim9: cannot set an option to a false
...
Problem: Vim9: cannot set an option to a false.
Solution: For VAR_BOOL use string "0". (closes #7603 )
2021-01-03 15:55:10 +01:00
Bram Moolenaar
31a201a04a
patch 8.2.2284: Vim9: cannot set an option to a boolean value
...
Problem: Vim9: cannot set an option to a boolean value.
Solution: Check for VAR_BOOL. (closes #7603 )
2021-01-03 14:47:25 +01:00
Bram Moolenaar
e68b02a1c4
patch 8.2.2283: Vim9: crash when lambda has fewer arguments than expected
...
Problem: Vim9: crash when lambda has fewer arguments than expected.
Solution: Don't check arguments when already failed. (closes #7606 )
2021-01-03 13:09:51 +01:00
Bram Moolenaar
339c1bdbdf
patch 8.2.2282: length check mismatch with argument of strncmp()
...
Problem: Length check mismatch with argument of strncmp(). (Christian
Brabandt)
Solution: Adjust length check.
2021-01-02 20:14:23 +01:00
Bram Moolenaar
a11919fa44
patch 8.2.2281: Vim9: compiled "wincmd" cannot be followed by bar
...
Problem: Vim9: compiled "wincmd" cannot be followed by bar.
Solution: Check for bar after "wincmd". (closes #7599 )
2021-01-02 19:44:56 +01:00
Bram Moolenaar
9d19e4f4ba
patch 8.2.2280: fuzzy matching doesn't give access to the scores
...
Problem: Fuzzy matching doesn't give access to the scores.
Solution: Return the scores with a third list. (Yegappan Lakshmanan,
closes #7596 )
2021-01-02 18:31:32 +01:00