Yegappan Lakshmanan
ee47eaceaa
patch 9.0.0003: functions are global while they could be local
...
Problem: Functions are global while they could be local.
Solution: Add "static". Add a few tests. (Yegappan Lakshmanan,
closes #10612 )
2022-06-29 12:55:36 +01:00
Bram Moolenaar
4748c4bd64
patch 8.2.4974: ":so" command may read after end of buffer
...
Problem: ":so" command may read after end of buffer.
Solution: Compute length of text properly.
2022-05-17 17:47:07 +01:00
Bram Moolenaar
31e5c60a68
patch 8.2.4753: error from setting an option is silently ignored
...
Problem: Error from setting an option is silently ignored.
Solution: Handle option value errors better. Fix uses of N_().
2022-04-15 13:53:33 +01:00
LemonBoy
eca7c60d68
patch 8.2.4749: <script> is not expanded in autocmd context
...
Problem: <script> is not expanded in autocmd context.
Solution: Add the context to the pattern struct. (closes #10144 )
Rename AutoPatCmd to AutoPatCmd_T.
2022-04-14 15:39:43 +01:00
Bram Moolenaar
8944551534
patch 8.2.4748: cannot use an imported function in a mapping
...
Problem: Cannot use an imported function in a mapping.
Solution: Recognize <SID>name.Func.
2022-04-14 12:58:23 +01:00
LemonBoy
6013d0045d
patch 8.2.4726: cannot use expand() to get the script name
...
Problem: Cannot use expand() to get the script name.
Solution: Support expand('<script>'). (closes #10121 )
2022-04-09 21:42:10 +01:00
Bram Moolenaar
c0ceeeb839
patch 8.2.4650: "import autoload" only works with using 'runtimepath'
...
Problem: "import autoload" only works with using 'runtimepath'.
Solution: Also support a relative and absolute file name.
2022-03-30 21:12:27 +01:00
Bram Moolenaar
2bdad61267
patch 8.2.4647: "source" can read past end of copied line
...
Problem: "source" can read past end of copied line.
Solution: Add a terminating NUL.
2022-03-29 19:52:12 +01:00
Yegappan Lakshmanan
454ce6737c
patch 8.2.4617: no completion for :scriptnames
...
Problem: No completion for :scriptnames.
Solution: Implement :scriptnames completion. (Yegappan Lakshmanan,
closes #10005 )
2022-03-24 11:22:13 +00:00
Yegappan Lakshmanan
35dc17634d
patch 8.2.4607: sourcing buffer lines may lead to errors for conflicts
...
Problem: Sourcing buffer lines may lead to errors for conflicts.
Solution: Add the ++clear argument. (Yegappan Lakshmanan, closes #9991 )
2022-03-22 12:13:54 +00:00
Yegappan Lakshmanan
85b43c6cb7
patch 8.2.4603: sourcing buffer lines is too complicated
...
Problem: Sourcing buffer lines is too complicated.
Solution: Simplify the code. Make it possible to source Vim9 script lines.
(Yegappan Lakshmanan, closes #9974 )
2022-03-21 19:45:17 +00:00
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