Bram Moolenaar
74409f6279
patch 8.2.3970: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2022-01-01 15:58:22 +00:00
Bram Moolenaar
460ae5dfca
patch 8.2.3967: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2022-01-01 14:19:49 +00:00
Bram Moolenaar
436b5adc97
patch 8.2.3961: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2021-12-31 22:49:24 +00:00
Bram Moolenaar
1a9922243a
patch 8.2.3957: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more errors to errors.h.
2021-12-31 17:25:48 +00:00
Dominique Pelle
af4a61a85d
patch 8.2.3914: various spelling mistakes in comments
...
Problem: Various spelling mistakes in comments.
Solution: Fix the mistakes. (Dominique Pellé, closes #9416 )
2021-12-27 17:21:41 +00:00
Bram Moolenaar
71eb3ad579
patch 8.2.3901: Vim9: Cannot set 'cpo' in main .vimrc if using Vim9 script
...
Problem: Vim9: Cannot set 'cpo' in main .vimrc if using Vim9 script.
Solution: Do not restore 'cpo' at the end of the main .vimrc.
2021-12-26 12:07:30 +00:00
Bram Moolenaar
c449271f4e
patch 8.2.3646: using <sfile> in a function gives an unexpected result
...
Problem: Using <sfile> in a function gives an unexpected result.
Solution: Give an error in a Vim9 function. (issue #9189 )
2021-11-22 15:37:15 +00:00
Bram Moolenaar
8de901e1f1
patch 8.2.2976: build failure without the +eval feature
...
Problem: Build failure without the +eval feature.
Solution: Add #ifdefs.
2021-06-11 22:21:24 +02:00
Bram Moolenaar
f0a4069e3d
patch 8.2.2975: Vim9: can only use an autoload function name as a string
...
Problem: Vim9: can only use an autoload function name as a string.
Solution: Load the autoload script when encountered. (closes #8124 )
2021-06-11 22:05:47 +02:00
Bram Moolenaar
5072b47a22
patch 8.2.2931: Vim9: line continuation comment uses legacy syntax
...
Problem: Vim9: line continuation comment still uses legacy syntax in one
place.
Solution: Check for #\ instead of "\ earlier. (closes #8316 )
2021-06-03 21:56:10 +02:00
Bram Moolenaar
0f37e3561d
patch 8.2.2925: Vim9: line continuation comment uses legacy syntax
...
Problem: Vim9: line continuation comment uses legacy syntax.
Solution: Check for #\ instead of "\. (closes #8295 )
2021-06-02 15:28:15 +02:00
Bram Moolenaar
3e1916947d
patch 8.2.2616: Vim9: if 'cpo' is change in Vim9 script it may be restored
...
Problem: Vim9: if 'cpo' is change in Vim9 script it may be restored.
Solution: Apply the changes to 'cpo' to the restored value.
2021-03-17 17:46:00 +01:00
Bram Moolenaar
37294bd6a2
patch 8.2.2581: Vim9: sourcing Vim9 script triggers a redraw
...
Problem: Vim9: sourcing Vim9 script triggers a redraw.
Solution: Do not let setting/restoring 'cpoptions' cause a redraw.
(closes #7920 )
2021-03-10 13:40:08 +01:00
Bram Moolenaar
0123cc1e14
patch 8.2.2485: when sourcing a script again the script version isn't reset
...
Problem: When sourcing a script again the script version isn't reset.
Solution: Set sn_version to one when sourcing a script again. Clear
sn_save_cpo properly. (closes #7608 )
2021-02-07 17:17:58 +01:00
Bram Moolenaar
9567efa1b4
patch 8.2.2332: Vim9: missing :endif not reported when using :windo
...
Problem: Vim9: missing :endif not reported when using :windo.
Solution: Pass a getline function to do_cmdline(). (closes #7650 )
2021-01-11 22:16:30 +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
dcc58e031d
patch 8.2.2239: Vim9: concatenating lines with backslash is inconvenient
...
Problem: Vim9: concatenating lines with backslash is inconvenient.
Solution: Support concatenating lines starting with '|', useful for
:autocmd, :command, etc. (closes #6702 )
2020-12-28 20:53:21 +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
746670604a
patch 8.2.2236: 'scroll' option can change when setting the statusline
...
Problem: 'scroll' option can change when setting the statusline or tabline
but the option context is not updated.
Solution: Update the script context when the scroll option is changed as a
side effect. (Christian Brabandt, closes #7533 )
2020-12-28 15:41:41 +01:00
Bram Moolenaar
7e3ee7823f
patch 8.2.2226: Vim9: script test fails
...
Problem: Vim9: script test fails.
Solution: Add missing change.
2020-12-27 14:02:27 +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
4aab88d919
patch 8.2.2208: Vim9: after reloading a script variable index may be invalid
...
Problem: Vim9: after reloading a script variable index may be invalid.
Solution: When the sequence number doesn't match give an error for using a
script-local variable from a compiled function. (closes #7547 )
2020-12-24 21:56:41 +01:00
Bram Moolenaar
8f1bf2ef78
patch 8.2.2125: Vim9: leaking memory
...
Problem: Vim9: leaking memory.
Solution: Free the saved 'cpo' value.
2020-12-10 20:21:24 +01:00
Bram Moolenaar
9ec7026f24
patch 8.2.2122: Vim9: crash when sourcing vim9script early
...
Problem: Vim9: crash when sourcing vim9script early.
Solution: Use set_option_value() instead of setting p_cpo directly.
(closes #7441 )
2020-12-09 17:16:59 +01:00
Bram Moolenaar
659bb2275e
patch 8.2.1980: Vim9: some tests are not done at the script level
...
Problem: Vim9: some tests are not done at the script level.
Solution: Use CheckDefAndScriptSuccess() in more places. Fix uncovered
problems.
2020-11-12 20:16:39 +01:00
Bram Moolenaar
02194d2bd5
patch 8.2.1900: Vim9: command modifiers do not work
...
Problem: Vim9: command modifiers do not work.
Solution: Make most command modifiers work.
2020-10-24 23:08:38 +02:00
Bram Moolenaar
e100440158
patch 8.2.1898: command modifier parsing always uses global cmdmod
...
Problem: Command modifier parsing always uses global cmdmod.
Solution: Pass in cmdmod_T to use. Rename struct fields consistently.
2020-10-24 20:49:43 +02:00
Bram Moolenaar
8d739de43b
patch 8.2.1845: Vim9: function defined in a block can't use block variables
...
Problem: Vim9: function defined in a block can't use variables defined in
that block.
Solution: First step: Make a second hashtab that holds all script variables,
also block-local ones, with more information.
2020-10-14 19:39:19 +02:00
Bram Moolenaar
a810db3f17
patch 8.2.1658: expand('<stack>') has trailing ".."
...
Problem: Expand('<stack>') has trailing "..".
Solution: Remove the "..". (closes #6927 )
2020-09-11 17:59:23 +02:00
Bram Moolenaar
4f25b1aba0
patch 8.2.1653: expand('<stack>') does not include the final line number
...
Problem: Expand('<stack>') does not include the final line number.
Solution: Add the line nuber. (closes #6927 )
2020-09-10 19:25:05 +02:00
Bram Moolenaar
e3d4685f1f
patch 8.2.1539: using invalid script ID causes a crash
...
Problem: Using invalid script ID causes a crash.
Solution: Check the script ID to be valid. (closes #6804 )
2020-08-29 13:39:17 +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
aeb2bdd0de
patch 8.2.1482: Vim9: crash when using a nested lambda
...
Problem: Vim9: crash when using a nested lambda.
Solution: Do not clear the growarray when not evaluating. Correct pointer
when getting the next line. (closes #6731 )
2020-08-18 22:32:03 +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
a177344dc0
patch 8.2.1426: Vim9: cannot call autoload function in :def function
...
Problem: Vim9: cannot call autoload function in :def function.
Solution: Load the autoload script. (closes #6690 )
2020-08-12 15:21:22 +02:00
Bram Moolenaar
daa2f36573
patch 8.2.1398: autoload script sourced twice if sourced directly
...
Problem: Autoload script sourced twice if sourced directly.
Solution: Do not source an autoload script again. (issue #6644 )
2020-08-08 21:33:21 +02:00
Bram Moolenaar
d3bb6a82a5
patch 8.2.1299: compiler warning for using size_t for int and void pointer
...
Problem: Compiler warning for using size_t for int and void pointer.
Solution: Add type casts.
2020-07-26 15:55:25 +02:00
Bram Moolenaar
cb4f69c2fd
patch 8.2.1298: compiler warning for unused argument in small version
...
Problem: Compiler warning for unused argument in small version.
Solution: Add UNUSED.
2020-07-26 15:51:06 +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
f398238a37
patch 8.2.1245: build failure in tiny version
...
Problem: Build failure in tiny version.
Solution: Add #ifdef.
2020-07-19 16:32:09 +02:00
Bram Moolenaar
75783bd84e
patch 8.2.1243: Vim9: cannot have a comment line halfway a list
...
Problem: Vim9: cannot have a comment or empty line halfway a list at script
level.
Solution: Skip more than one line if needed.
2020-07-19 14:41:58 +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
c620c055ce
patch 8.2.1154: Vim9: crash when using imported function
...
Problem: Vim9: crash when using imported function.
Solution: Check for a function type. Set the script context when calling a
function. (closes #6412 )
2020-07-08 15:16:19 +02:00
Bram Moolenaar
5409f5d8c9
patch 8.2.1047: Vim9: script cannot use line continuation like :def function
...
Problem: Vim9: script cannot use line continuation like in a :def function.
Solution: Pass the getline function pointer to the eval() functions. Use it
for addition and multiplication operators.
2020-06-24 18:37:35 +02:00
Bram Moolenaar
6797966dfc
patch 8.2.1024: Vim9: no error for using "let g:var = val"
...
Problem: Vim9: no error for using "let g:var = val".
Solution: Add an error.
2020-06-20 22:50:47 +02:00
Bram Moolenaar
3b74b6b4bb
patch 8.2.1012: Vim9: cannot declare single character script variables
...
Problem: Vim9: cannot declare single character script variables.
Solution: Don't see "b:", "s:", etc. as namespace. Fix item size of
sn_var_vals.
2020-06-19 19:01:43 +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
04816717df
patch 8.2.0734: Vim9: leaking memory when using :finish
...
Problem: Vim9: leaking memory when using :finish.
Solution: Do not check for next line in third pass.
2020-05-10 23:11:53 +02:00
Bram Moolenaar
89483d4043
patch 8.2.0729: Vim9: When reloading a script variables are not cleared
...
Problem: Vim9: When reloading a script variables are not cleared.
Solution: When sourcing a script again clear all script-local variables.
2020-05-10 15:24:44 +02:00