Bram Moolenaar
b8a9296ced
patch 8.2.1496: Vim9: cannot use " #" in a mapping
...
Problem: Vim9: cannot use " #" in a mapping.
Solution: Do not remove a comment with the EX_NOTRLCOM flag. (closes #6746 )
2020-08-20 18:02:47 +02:00
Bram Moolenaar
20b23c6358
patch 8.2.1492: build failures
...
Problem: Build failures.
Solution: Move typedef out of #ifdef. Adjust argument types. Discover
America.
2020-08-20 15:25:00 +02:00
Bram Moolenaar
66250c932e
patch 8.2.1491: Vim9: crash when compiling heredoc lines start with comment
...
Problem: Vim9: crash when compiling heredoc lines start with comment.
Solution: Skip over NULL pointers. Do not remove comment and empty lines
when fetching function lines. (closes #6743 )
2020-08-20 15:02:42 +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
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
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
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
94f4ffa770
patch 8.2.1413: previous tab page not usable from an Ex command
...
Problem: Previous tab page not usable from an Ex command.
Solution: Add the "#" argument for :tabnext et al. (Yegappan Lakshmanan,
closes #6677 )
2020-08-10 19:21:15 +02:00
Bram Moolenaar
8e1986e389
patch 8.2.1382: Vim9: using :import in filetype plugin gives an error
...
Problem: Vim9: using :import in filetype plugin gives an error.
Solution: Allow commands with the EX_LOCK_OK flag. (closes #6636 )
2020-08-06 22:11:06 +02:00
Bram Moolenaar
8314454648
patch 8.2.1359: Vim9: cannot assign to / register in Vim9 script
...
Problem: Vim9: cannot assign to / register in Vim9 script.
Solution: Adjust check for assignment in Vim9 script. (closes #6567 )
2020-08-02 20:40:43 +02:00
Bram Moolenaar
e4218b9416
patch 8.2.1348: build failure without the eval feature
...
Problem: Build failure without the eval feature.
Solution: Add #ifdef.
2020-08-01 21:11:38 +02:00
Bram Moolenaar
909443028b
patch 8.2.1347: cannot easily get the script ID
...
Problem: Cannot easily get the script ID.
Solution: Support expand('<SID>').
2020-08-01 20:45:11 +02:00
Bram Moolenaar
491799be50
patch 8.2.1346: small build fails
...
Problem: Small build fails.
Solution: Add #ifdef.
2020-08-01 19:23:43 +02:00
Bram Moolenaar
f5a48010ef
patch 8.2.1342: Vim9: accidentally using "t" gives a confusing error
...
Problem: Vim9: accidentally using "x" gives a confusing error.
Solution: Disallow using ":t" in Vim9 script. (issue #6399 )
2020-08-01 17:00:03 +02:00
Bram Moolenaar
1040956292
patch 8.2.1322: Vim9: method on double quoted string doesn't work
...
Problem: Vim9: method on double quoted string doesn't work.
Solution: Recognize double quoted string. (closes #6562 )
2020-07-29 20:00:38 +02:00
Bram Moolenaar
b5ed266037
patch 8.2.1313: Vim9 script: cannot assign to environment variable
...
Problem: Vim9 script: cannot assign to environment variable.
Solution: Recognize environment variable assignment. (closes #6548 )
Also options and registers.
2020-07-28 22:38:37 +02:00
Bram Moolenaar
461f21242a
patch 8.2.1309: build failure with tiny version
...
Problem: Build failure with tiny version.
Solution: Add #ifdef.
2020-07-28 20:25:47 +02:00
Bram Moolenaar
ae616494d7
patch 8.2.1308: Vim9: accidentally using "x" causes Vim to exit
...
Problem: Vim9: accidentally using "x" causes Vim to exit.
Solution: Disallow using ":x" or "xit" in Vim9 script. (closes #6399 )
2020-07-28 20:07:27 +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
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
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
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
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
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
6e36b1c18e
patch 8.2.1229: build error without the eval feature
...
Problem: Build error without the eval feature.
Solution: Declare starts_with_colon. Make function local.
2020-07-17 20:47:51 +02:00
Bram Moolenaar
f5be8cdb77
patch 8.2.1227: Vim9: allowing both quoted and # comments is confusing
...
Problem: Vim9: allowing both quoted and # comments is confusing.
Solution: Only support # comments in Vim9 script.
2020-07-17 20:36:00 +02:00
Bram Moolenaar
3d48e25dcb
patch 8.2.1218: Vim9: cannot use 'text'->func()
...
Problem: Vim9: cannot use 'text'->func().
Solution: Recognize string at start of command.
2020-07-15 14:15:52 +02:00
Bram Moolenaar
eb6880b6eb
patch 8.2.1190: Vim9: checking for Vim9 syntax is spread out
...
Problem: Vim9: checking for Vim9 syntax is spread out.
Solution: Use in_vim9script().
2020-07-12 17:07:05 +02:00
Bram Moolenaar
1e624c912d
patch 8.2.1180: build failure in small version
...
Problem: Build failure in small version.
Solution: Add #ifdef.
2020-07-11 14:08:04 +02:00
Bram Moolenaar
b074e8b8d4
patch 8.2.1178: Vim9: filter function recognized as command modifier
...
Problem: Vim9: filter function recognized as command modifier, leading to a
crash.
Solution: Clear cmdmod after freeing items. Do not recognize a command
modifier followed by non-white space. (closes #6434 )
2020-07-11 13:40:45 +02:00
Bram Moolenaar
0a47e0970a
patch 8.2.1157: Vim9: dict.name is not recognized as an expression
...
Problem: Vim9: dict.name is not recognized as an expression.
Solution: Recognize ".name". (closes #6418 )
2020-07-08 18:30:06 +02:00
Bram Moolenaar
47e7d70b58
patch 8.2.1137: Vim9: modifiers not cleared after compiling function
...
Problem: Vim9: modifiers not cleared after compiling function.
Solution: Clear command modifiers. (closes #6396 )
2020-07-05 18:18:42 +02:00
Bram Moolenaar
d2ef6b320b
patch 8.2.1116: Vim9: parsing command checks for list twice
...
Problem: Vim9: parsing command checks for list twice.
Solution: Adjust how a command is parsed.
2020-07-02 21:11:34 +02:00
Bram Moolenaar
5f195938d4
patch 8.2.1112: Vim9: no line continuation allowed in method call
...
Problem: Vim9: no line continuation allowed in method call.
Solution: Handle line continuation in expression before method call.
2020-07-01 20:07:14 +02:00
Bram Moolenaar
d5053d015a
patch 8.2.1079: Vim9: no line break allowed in a while loop
...
Problem: Vim9: no line break allowed in a while loop.
Solution: Update stored loop lines when finding line breaks.
2020-06-28 15:51:16 +02:00
Bram Moolenaar
cf8441704d
patch 8.2.1059: crash when using :tabonly in an autocommand
...
Problem: Crash when using :tabonly in an autocommand. (Yegappan Lakshmanan)
Solution: Do not allow the autocommand window to be closed.
2020-06-26 19:44:06 +02:00
Bram Moolenaar
b171fb1790
patch 8.2.1049: Vim9: leaking memory when using continuation line
...
Problem: Vim9: leaking memory when using continuation line.
Solution: Keep a pointer to the continuation line in evalarg_T. Centralize
checking for a next command.
2020-06-24 20:34:03 +02:00
Bram Moolenaar
df069eec3b
patch 8.2.1042: Vim9: cannot put an operator on the next line
...
Problem: Vim9: cannot put an operator on the next line.
Solution: Require a colon before a range to see if that causes problems.
2020-06-22 23:02:51 +02:00
Bram Moolenaar
158ea175a9
patch 8.2.1000: get error when leaving Ex mode with :visual
...
Problem: Get error when leaving Ex mode with :visual and a CmdLineEnter
autocommand was used.
Solution: Reset ex_pressedreturn. (closes #6293 )
2020-06-18 17:28:39 +02:00
Bram Moolenaar
002bc79991
patch 8.2.0909: cannot go back to the previous local directory
...
Problem: Cannot go back to the previous local directory.
Solution: Add "tcd -" and "lcd -". (Yegappan Lakshmanan, closes #4362 )
2020-06-05 22:33:42 +02:00
Bram Moolenaar
5fbf3bc3f9
patch 8.2.0883: memory leak in test 49
...
Problem: Memory leak in test 49.
Solution: Free "sfile" from the exception.
2020-06-01 21:13:11 +02:00
Bram Moolenaar
950587242c
patch 8.2.0876: :pwd does not give a hint about the scope of the directory
...
Problem: :pwd does not give a hint about the scope of the directory
Solution: Make ":verbose pwd" show the scope. (Takuya Fujiwara, closes #5469 )
2020-06-01 16:26:19 +02:00
Bram Moolenaar
ca70c07b72
patch 8.2.0853: ml_delete() often called with FALSE argument
...
Problem: ml_delete() often called with FALSE argument.
Solution: Use ml_delete_flags(x, ML_DEL_MESSAGE) when argument is TRUE.
2020-05-30 20:30:46 +02:00
Bram Moolenaar
823654bc06
patch 8.2.0841: 'verbose' value 16 causes duplicate output
...
Problem: 'verbose' value 16 causes duplicate output.
Solution: Combine levels 15 and 16 into one message. (Christian Brabandt,
closes #6153 )
2020-05-29 23:03:09 +02:00
Bram Moolenaar
25e0f5863e
patch 8.2.0823: Vim9: script reload test is disabled
...
Problem: Vim9: script reload test is disabled.
Solution: Compile a function in the context of the script where it was
defined. Set execution stack for compiled function. Add a test
that an error is reported for the right file/function.
2020-05-25 22:36:50 +02:00
Bram Moolenaar
2eec37926d
patch 8.2.0822: Vim9: code left over from discovery phase
...
Problem: Vim9: code left over from discovery phase.
Solution: Remove the dead code.
2020-05-25 20:33:55 +02:00
Bram Moolenaar
822ba24743
patch 8.2.0818: Vim9: using a discovery phase doesn't work well
...
Problem: Vim9: using a discovery phase doesn't work well.
Solution: Remove the discovery phase, instead compile a function only when
it is used. Add :defcompile to compile def functions earlier.
2020-05-24 23:00:18 +02:00
Bram Moolenaar
b5383b174b
patch 8.2.0791: a second popup window with terminal causes trouble
...
Problem: A second popup window with terminal causes trouble.
Solution: Disallow opening a second terminal-popup window. (closes #6101 ,
closes #6103 ) Avoid defaulting to an invalid line number.
2020-05-18 19:46:48 +02:00
Bram Moolenaar
b84a381c75
patch 8.2.0675: Vim9: no support for closures
...
Problem: Vim9: no support for closures.
Solution: Do not re-use stack entries.
2020-05-01 15:44:29 +02:00