| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Problem: Using <sfile> in a function gives an unexpected result.
Solution: Give an error in a Vim9 function. (issue #9189)
|
|
|
|
|
| |
Problem: Build failure without the +eval feature.
Solution: Add #ifdefs.
|
|
|
|
|
| |
Problem: Vim9: can only use an autoload function name as a string.
Solution: Load the autoload script when encountered. (closes #8124)
|
|
|
|
|
|
| |
Problem: Vim9: line continuation comment still uses legacy syntax in one
place.
Solution: Check for #\ instead of "\ earlier. (closes #8316)
|
|
|
|
|
| |
Problem: Vim9: line continuation comment uses legacy syntax.
Solution: Check for #\ instead of "\. (closes #8295)
|
|
|
|
|
| |
Problem: Vim9: if 'cpo' is change in Vim9 script it may be restored.
Solution: Apply the changes to 'cpo' to the restored value.
|
|
|
|
|
|
| |
Problem: Vim9: sourcing Vim9 script triggers a redraw.
Solution: Do not let setting/restoring 'cpoptions' cause a redraw.
(closes #7920)
|
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
Problem: Vim9: missing :endif not reported when using :windo.
Solution: Pass a getline function to do_cmdline(). (closes #7650)
|
|
|
|
|
| |
Problem: Vim9: line continuation with bar does not work at script level.
Solution: Check for Vim9 script.
|
|
|
|
|
|
| |
Problem: Vim9: concatenating lines with backslash is inconvenient.
Solution: Support concatenating lines starting with '|', useful for
:autocmd, :command, etc. (closes #6702)
|
|
|
|
|
| |
Problem: Vim9: cannot load a Vim9 script without the +eval feature.
Solution: Support Vim9 script syntax without the +eval feature.
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
Problem: Vim9: script test fails.
Solution: Add missing change.
|
|
|
|
|
| |
Problem: Vim9: cannot keep script variables when reloading.
Solution: Add the "noclear" argument to :vim9script.
|
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
Problem: Vim9: leaking memory.
Solution: Free the saved 'cpo' value.
|
|
|
|
|
|
| |
Problem: Vim9: crash when sourcing vim9script early.
Solution: Use set_option_value() instead of setting p_cpo directly.
(closes #7441)
|
|
|
|
|
|
| |
Problem: Vim9: some tests are not done at the script level.
Solution: Use CheckDefAndScriptSuccess() in more places. Fix uncovered
problems.
|
|
|
|
|
| |
Problem: Vim9: command modifiers do not work.
Solution: Make most command modifiers work.
|
|
|
|
|
| |
Problem: Command modifier parsing always uses global cmdmod.
Solution: Pass in cmdmod_T to use. Rename struct fields consistently.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Problem: Expand('<stack>') has trailing "..".
Solution: Remove the "..". (closes #6927)
|
|
|
|
|
| |
Problem: Expand('<stack>') does not include the final line number.
Solution: Add the line nuber. (closes #6927)
|
|
|
|
|
| |
Problem: Using invalid script ID causes a crash.
Solution: Check the script ID to be valid. (closes #6804)
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
Problem: Error messages are spread out.
Solution: Move more messages into errors.h.
|
|
|
|
|
| |
Problem: Vim9: cannot call autoload function in :def function.
Solution: Load the autoload script. (closes #6690)
|
|
|
|
|
| |
Problem: Autoload script sourced twice if sourced directly.
Solution: Do not source an autoload script again. (issue #6644)
|
|
|
|
|
| |
Problem: Compiler warning for using size_t for int and void pointer.
Solution: Add type casts.
|
|
|
|
|
| |
Problem: Compiler warning for unused argument in small version.
Solution: Add UNUSED.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Problem: Build failure in tiny version.
Solution: Add #ifdef.
|
|
|
|
|
|
| |
Problem: Vim9: cannot have a comment or empty line halfway a list at script
level.
Solution: Skip more than one line if needed.
|
|
|
|
|
| |
Problem: Vim9: checking for Vim9 syntax is spread out.
Solution: Use in_vim9script().
|
|
|
|
|
|
| |
Problem: Vim9: crash when using imported function.
Solution: Check for a function type. Set the script context when calling a
function. (closes #6412)
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Problem: Vim9: no error for using "let g:var = val".
Solution: Add an error.
|
|
|
|
|
|
| |
Problem: Vim9: cannot declare single character script variables.
Solution: Don't see "b:", "s:", etc. as namespace. Fix item size of
sn_var_vals.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Problem: Vim9: code left over from discovery phase.
Solution: Remove the dead code.
|
|
|
|
|
| |
Problem: Vim9: leaking memory when using :finish.
Solution: Do not check for next line in third pass.
|
|
|
|
|
| |
Problem: Vim9: When reloading a script variables are not cleared.
Solution: When sourcing a script again clear all script-local variables.
|
|
|
|
|
| |
Problem: Vim9: cannot call a function declared later in Vim9 script.
Solution: Make two passes through the script file.
|
|
|
|
|
| |
Problem: Output clobbered if setting 'verbose' to see shell commands.
Solution: Only output "Searching for" when 'verbose' is 11 or higher.
|
|
|
|
|
|
| |
Problem: Vim9: script function can be deleted.
Solution: Disallow deleting script function. Delete functions when sourcing
a script again.
|
|
|
|
|
| |
Problem: Not all modifiers supported for :options.
Solution: Use all cmdmod.split flags. (closes #4401)
|
|
|
|
|
| |
Problem: Vim9: some errors are not tested
Solution: Add more tests. Fix that Vim9 script flag is not reset.
|
|
|
|
|
| |
Problem: Various memory leaks in Vim9 script code.
Solution: Fix the leaks. (Ozaki Kiichi, closes #5814)
|