Bram Moolenaar
77b10ffad4
patch 8.2.2603: Vim9: no effect if user command is also a function
...
Problem: Vim9: no effect if user command is also a function.
Solution: Check for paren following. (closes #7960 )
2021-03-14 13:21:35 +01:00
Bram Moolenaar
6508880d6c
patch 8.2.2598: Vim9: :open does not need to be supported
...
Problem: Vim9: :open does not need to be supported.
Solution: Do not support :open in Vim9 script.
2021-03-13 21:07:21 +01:00
Bram Moolenaar
2e2d758902
patch 8.2.2566: Vim9: Function name is not recognized
...
Problem: Vim9: Function name is not recognized.
Solution: Change lookup_scriptvar() to also find function names.
(closes #7770 )
2021-03-03 21:22:41 +01:00
Bram Moolenaar
10b9421f3b
patch 8.2.2531: Vim9: the :k command is obscure
...
Problem: Vim9: the :k command is obscure.
Solution: Disallow using :k, can use :mark instead. (closes #7874 )
2021-02-19 21:42:57 +01:00
Bram Moolenaar
d3f8a9ee65
patch 8.2.2529: Vim9: Not possible to use legacy and Vim9 script in one file
...
Problem: Vim9: Not possible to use legacy and Vim9 script in one file.
Solution: Vim9: allow for "if false" before :vim9script. (closes #7851 )
2021-02-17 21:57:03 +01:00
Bram Moolenaar
e0890d678d
patch 8.2.2525: Vim9: only local variables checked for a name
...
Problem: Vim9: only local variables checked for a name.
Solution: Also check arguments and script variables. (closes #7838 )
2021-02-17 14:52:14 +01:00
Bram Moolenaar
b8554304c3
patch 8.2.2519: Vim9: no reason to keep strange Vi behavior
...
Problem: Vim9: no reason to keep strange Vi behavior.
Solution: ":3" and ":3|" both go to line 3. ":|" does not print the line.
(closes #7840 )
2021-02-15 21:30:30 +01:00
Bram Moolenaar
2379f87eb4
patch 8.2.2514: Vim9: build error in tiny version
...
Problem: Vim9: build error in tiny version.
Solution: Add #ifdef.
2021-02-14 14:07:34 +01:00
Bram Moolenaar
39f3b14110
patch 8.2.2511: Vim9: cannot use Vim9 script syntax in some places
...
Problem: Vim9: cannot use Vim9 script syntax in some places.
Solution: Add the :vim9cmd command modifier. Incompatible: Makes ":vim9"
mean ":vim9cmd" instead of ":vim9script".
2021-02-14 12:57:36 +01:00
Bram Moolenaar
dee37dc733
patch 8.2.2484: Vim9: Cannot use a comment starting with #{
...
Problem: Vim9: Cannot use a comment starting with #{ after an expression.
Solution: Remove the check for "{" since #{ dictionaries are not supported.
2021-02-07 16:40:05 +01:00
Bram Moolenaar
f5a5116a96
patch 8.2.2469: confusing error if :winsize has a wrong argument
...
Problem: Confusing error if :winsize has a wrong argument.
Solution: Quote the argument in the error. (closes #2523 )
2021-02-06 12:58:18 +01:00
Bram Moolenaar
038e09ee76
patch 8.2.2468: not easy to get the full command name from a shortened one
...
Problem: Not easy to get the full command name from a shortened one.
Solution: Add fullcommand(). (Martin Tournoij, closes #7777 )
2021-02-06 12:38:51 +01:00
Bram Moolenaar
148be9bc1c
patch 8.2.2453: Vim9: a variable name with "->" in the next line doesn't work
...
Problem: Vim9: a variable name with "->" in the next line doesn't work.
Solution: Recognize a variable name by itself. (closes #7770 )
2021-02-02 21:33:52 +01:00
Bram Moolenaar
ce0370d9e6
patch 8.2.2412: not all fields in "cstack" are initialized
...
Problem: Not all fields in "cstack" are initialized which might cause a
crash.
Solution: Use CLEAR_FIELD().
2021-01-26 19:32:53 +01:00
Bram Moolenaar
b204990346
patch 8.2.2400: Vim9: compiled functions are not profiled
...
Problem: Vim9: compiled functions are not profiled.
Solution: Add initial changes to profile compiled functions. Fix that a
script-local function was hard to debug.
2021-01-24 12:53:53 +01:00
Bram Moolenaar
7cebe8ba7d
patch 8.2.2396: Vim9: no white space allowed before "->"
...
Problem: Vim9: no white space allowed before "->".
Solution: Allow for white space. (closes #7725 )
2021-01-23 14:22:16 +01:00
Bram Moolenaar
e2edc2ed4a
patch 8.2.2366: when using ":sleep" the cursor is always displayed
...
Problem: When using ":sleep" the cursor is always displayed.
Solution: Do not display the cursor when using ":sleep!". (Jeremy Lerner,
closes #7688 )
2021-01-16 20:21:23 +01:00
Bram Moolenaar
033135eb8e
patch 8.2.2350: using "void" for no reason
...
Problem: Using "void" for no reason.
Solution: Use "char *".
2021-01-14 21:40:22 +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
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
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
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
8242ebbdba
patch 8.2.2242: Vim9: bar line continuation does not work at script level
...
Problem: Vim9: line continuation with bar does not work at script level.
Solution: Check for Vim9 script.
2020-12-29 11:15:01 +01:00
Bram Moolenaar
9b8d62267f
patch 8.2.2238: Vim9: cannot load a Vim9 script without the +eval feature
...
Problem: Vim9: cannot load a Vim9 script without the +eval feature.
Solution: Support Vim9 script syntax without the +eval feature.
2020-12-28 18:26:00 +01:00
Bram Moolenaar
9618a25b9c
patch 8.2.2232: compiler error for falling through into next case
...
Problem: Compiler error for falling through into next case.
Solution: Move FALLTHROUGH below the #endif
2020-12-27 19:18:03 +01:00
Bram Moolenaar
39cb2dab18
patch 8.2.2229: build failure without the +eval feature
...
Problem: build failure without the +eval feature.
Solution: Add #ifdef.
2020-12-27 17:35:18 +01:00
Bram Moolenaar
4389f9cd00
patch 8.2.2228: Vim9: cannot use ":e #" because # starts a comment
...
Problem: Vim9: cannot use ":e #" because # starts a comment.
Solution: Support using %% instead of #.
2020-12-27 16:55:11 +01:00
Bram Moolenaar
2b32700dab
patch 8.2.2222: Vim9: cannot keep script variables when reloading
...
Problem: Vim9: cannot keep script variables when reloading.
Solution: Add the "noclear" argument to :vim9script.
2020-12-26 15:39:31 +01:00
Bram Moolenaar
6e2c2c50ba
patch 8.2.2216: Vim9: range with missing colon can be hard to spot
...
Problem: Vim9: range with missing colon can be hard to spot.
Solution: Include the start of the range in the error. (closes #7543 )
2020-12-25 19:25:45 +01:00
Bram Moolenaar
f8103f274e
patch 8.2.2214: ":e#" does not give a warning for missing white space
...
Problem: ":e#" does not give a warning for missing white space.
Solution: Adjust the check for white space. (closes #7545 )
2020-12-25 17:36:27 +01:00
Bram Moolenaar
f4e2099e39
patch 8.2.2182: Vim9: value of 'magic' is still relevant
...
Problem: Vim9: value of 'magic' is still relevant.
Solution: Always behave like 'magic' is on in Vim9 script (closes #7509 )
2020-12-21 19:59:08 +01:00
Bram Moolenaar
8f22f5c3aa
patch 8.2.2165: Vim9: assignment to dict member does not work
...
Problem: Vim9: assignment to dict member does not work.
Solution: Fix recognizing dict member. (closes #7484 )
2020-12-19 22:10:13 +01:00
Bram Moolenaar
1c0aa97827
patch 8.2.2148: Vim9: crash when user command doesn't match
...
Problem: Vim9: crash when user command doesn't match.
Solution: Adjust command index. (closes #7479 )
2020-12-16 21:43:54 +01:00
Bram Moolenaar
2a3cd3af45
patch 8.2.2140: build failure with tiny features
...
Problem: Build failure with tiny features.
Solution: Add #ifdef.
2020-12-13 19:22:27 +01:00
Bram Moolenaar
b5b9480ee9
patch 8.2.2138: Vim9: "exit_cb" causes Vim to exit
...
Problem: Vim9: "exit_cb" causes Vim to exit.
Solution: Require white space after a command in Vim9 script. (closes #7467 )
Also fix that Vim9 style heredoc was not always recognized.
2020-12-13 17:50:20 +01:00
Bram Moolenaar
93f82cbee5
patch 8.2.2135: Vim9: #{ still seen as start of dict in some places
...
Problem: Vim9: #{ still seen as start of dict in some places.
Solution: Remove check for { after #. (closes #7456 )
2020-12-12 21:25:56 +01:00
Bram Moolenaar
709664cca0
patch 8.2.2131: Vim9: crash when lambda uses same var as assignment
...
Problem: Vim9: crash when lambda uses same var as assignment.
Solution: Do not let lookup_local change lv_from_outer, make a copy.
(closes #7461 )
2020-12-12 14:33:41 +01:00
Bram Moolenaar
100118c73a
patch 8.2.2128: there is no way to do something on CTRL-Z
...
Problem: There is no way to do something on CTRL-Z.
Solution: Add VimSuspend and VimResume autocommand events. (closes #7450 )
2020-12-11 19:30:34 +01:00
Bram Moolenaar
a452b808b4
patch 8.2.2077: build failure with small features
...
Problem: Build failure with small features.
Solution: Add #ifdef.
2020-12-01 21:47:59 +01:00
Bram Moolenaar
4324d87a44
patch 8.2.2074: Vim9: using :normal from Vim9 script can't handle range
...
Problem: Vim9: using :normal from Vim9 script can't handle range.
Solution: Execute a :normal command in legacy script context. (closes #7401 )
2020-12-01 20:12:24 +01:00
Bram Moolenaar
da7c20c953
patch 8.2.2071: Vim9: list assign doesn't except empty remainder list
...
Problem: Vim9: list assign doesn't except empty remainder list.
Solution: Recognize list assignment with ";".
2020-11-30 21:12:19 +01:00
Bram Moolenaar
ce2c5444e2
patch 8.2.2066: Vim9: assignment with += doesn't work
...
Problem: Vim9: assignment with += doesn't work.
Solution: Do not see the "+" as an addition operator.
2020-11-28 21:21:17 +01:00
Bram Moolenaar
3482be6a33
patch 8.2.2058: using mkview/loadview changes the jumplist
...
Problem: Using mkview/loadview changes the jumplist.
Solution: Use ":keepjumps". Don't let ":badd" or ":balt" change the
jumplist. (closes #7371 )
2020-11-27 11:00:38 +01:00
Bram Moolenaar
47a2abf0bc
patch 8.2.2052: Vim9: "edit +4 fname" gives an error
...
Problem: Vim9: "edit +4 fname" gives an error. (Naruhiko Nishino)
Solution: Allow using a range in the +cmd argument. (closes #7364 )
2020-11-25 20:12:11 +01:00
Bram Moolenaar
6abdcf8285
patch 8.2.2033: Vim9: :def without argument gives compilation error
...
Problem: Vim9: :def without argument gives compilation error.
Solution: Add the DEF instruction. (closes #7344 )
2020-11-22 18:15:44 +01:00
Bram Moolenaar
95388e3179
patch 8.2.2022: Vim9: star command recognized errornously
...
Problem: Vim9: star command recognized errornously.
Solution: Give an error for missing colon. (issue #7335 )
2020-11-20 21:07:00 +01:00
Bram Moolenaar
eeece9e488
patch 8.2.2021: Vim9: get E1099 when autocommand resets did_emsg
...
Problem: Vim9: get E1099 when autocommand resets did_emsg.
Solution: Add did_emsg_cumul. (closes #7336 )
2020-11-20 19:26:48 +01:00
Bram Moolenaar
957cf67d50
patch 8.2.1978: making a mapping work in all modes is complicated
...
Problem: Making a mapping work in all modes is complicated.
Solution: Add the <Cmd> special key. (Yegappan Lakshmanan, closes #7282 ,
closes 4784, based on patch by Bjorn Linse)
2020-11-12 14:21:06 +01:00
Bram Moolenaar
59d8e56e04
patch 8.2.1967: the session file does not restore the alternate file
...
Problem: The session file does not restore the alternate file.
Solution: Add ":balt". Works like ":badd" and also sets the buffer as the
alternate file. Use it in the session file. (closes #7269 ,
closes #6714 )
2020-11-07 18:41:10 +01:00
Bram Moolenaar
36113e46b4
patch 8.2.1943: Vim9: wrong error message when colon is missing
...
Problem: Vim9: wrong error message when colon is missing.
Solution: Check for a missing colon. (issue #7239 )
2020-11-02 21:08:47 +01:00