Yegappan Lakshmanan
36a5b6867b
patch 8.2.4594: need to write script to a file to be able to source them
...
Problem: Need to write script to a file to be able to source them.
Solution: Make ":source" use lines from the current buffer. (Yegappan
Lakshmanan et al., closes #9967 )
2022-03-19 12:56:51 +00:00
Bram Moolenaar
2a9b62dfa2
patch 8.2.4357: sticky command modifiers are too sticky
...
Problem: sticky command modifiers are too sticky.
Solution: Do not apply command modifiers to a sourced script. (closes #9751 )
2022-02-12 13:30:17 +00:00
Bram Moolenaar
769f5895eb
patch 8.2.4336: using :filter for :scriptnames does not work
...
Problem: Using :filter for :scriptnames does not work. (Ben Jackson)
Solution: Call message_filtered(). (closes #9720 )
2022-02-09 14:31:05 +00:00
=?UTF-8?q?Bj=C3=B6rn=20Linse?=
223a950a85
patch 8.2.4275: cannot use an autoload function from a package under start
...
Problem: Cannot use an autoload function from a package under start.
Solution: Also look in the "start" package directory. (Bjorn Linse,
closes #7193 )
2022-01-31 17:26:05 +00:00
Bram Moolenaar
9c7cae66bc
patch 8.2.4162: Vim9: no error for redefining function with export
...
Problem: Vim9: no error for redefining function with export.
Solution: Check for existing function with/without prefix. (closes #9577 )
2022-01-20 19:10:25 +00:00
Bram Moolenaar
6079da7cfb
patch 8.2.4135: Vim9: ":scriptnames" shows unloaded imported autoload script
...
Problem: Vim9: ":scriptnames" shows unloaded imported autoload script.
Solution: Mark the unloaded script with "A". (closes #9552 )
2022-01-18 14:16:59 +00:00
Bram Moolenaar
840f16202e
patch 8.2.4133: output of ":scriptnames" goes into the message history
...
Problem: output of ":scriptnames" goes into the message history, while this
des not happen for other commands, such as ":ls".
Solution: Use msg_outtrans() instead of smsg(). (closes #9551 )
2022-01-18 13:34:05 +00:00
Bram Moolenaar
bfac409d0b
patch 8.2.4104: Vim9: lower casing the autoload prefix causes problems
...
Problem: Vim9: lower casing the autoload prefix causes problems.
Solution: Always store the prefix with case preserved.
2022-01-16 11:12:12 +00:00
Bram Moolenaar
3049fcf0a1
patch 8.2.4082: check for autoload file name and prefix fails
...
Problem: Check for autoload file name and prefix fails. (Christian J.
Robinson)
Solution: Only lower case the prefix on systems where the file name is not
case sensitive.
2022-01-13 19:25:50 +00:00
Bram Moolenaar
5d9826973d
patch 8.2.4069: Vim9: import test fails on MS-Windows
...
Problem: Vim9: import test fails on MS-Windows.
Solution: Ignore case. Adjust test to avoid name that only differs in case.
2022-01-12 15:15:27 +00:00
Bram Moolenaar
f479cac084
patch 8.2.4068: Vim9: import test fails
...
Problem: Vim9: import test fails.
Solution: Add missing change.
2022-01-12 12:54:55 +00:00
Bram Moolenaar
6990b78f25
patch 8.2.4056: Vim9: memory leak when exporting function in autoload script
...
Problem: Vim9: memory leak when exporting function in autoload script.
Solution: Fee the name if replacing it.
2022-01-10 19:21:06 +00:00
Bram Moolenaar
fe2ef0b2cd
patch 8.2.4053: Vim9: autoload mechanism doesn't fully work yet
...
Problem: Vim9: autoload mechanism doesn't fully work yet.
Solution: Define functions and variables with their autoload name, add the
prefix when calling a function, find the variable in the table of
script variables.
2022-01-10 18:08:00 +00:00
Bram Moolenaar
b06cfcf5a3
patch 8.2.4051: compiler complains about possibly uninitialized variable
...
Problem: Compiler complains about possibly uninitialized variable.
Solution: Add code to avoid a compiler warning. (John Marriott)
2022-01-10 11:26:33 +00:00
Bram Moolenaar
dc4451df61
patch 8.2.4050: Vim9: need to prefix every item in an autoload script
...
Problem: Vim9: need to prefix every item in an autoload script.
Solution: First step in supporting "vim9script autoload" and "import
autoload".
2022-01-09 21:36:37 +00:00
Bram Moolenaar
04935fb17e
patch 8.2.4043: using int for second argument of ga_init2()
...
Problem: Using int for second argument of ga_init2().
Solution: Remove unnessary type cast (int) when using sizeof().
2022-01-08 16:19:22 +00:00
Dominique Pelle
748b308eeb
patch 8.2.4038: various code not used when features are disabled
...
Problem: Various code not used when features are disabled.
Solution: Add #ifdefs. (Dominique Pellé, closes #9491 )
2022-01-08 12:41:16 +00:00
Bram Moolenaar
d82a47dd04
patch 8.2.4012: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move the last error messages to errors.h.
2022-01-05 20:24:39 +00:00
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