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
Bram Moolenaar
13789bf103
patch 8.2.3945: Vim9: partial variable argument types are wrong
...
Problem: Vim9: partial variable argument types are wrong, leading to a
crash.
Solution: When adjusting the argument count also adjust the argument types.
(closes #9433 )
2021-12-30 13:29:00 +00:00
Bram Moolenaar
c97f9a55bd
patch 8.2.3930: getcmdline() argument has a misleading type
...
Problem: getcmdline() argument has a misleading type.
Solution: Use the correct type, even though the value is not used.
2021-12-28 20:59:56 +00:00
Bram Moolenaar
11ceb7d949
patch 8.2.3928: heredoc test fails
...
Problem: Heredoc test fails.
Solution: Correct order of function arguments.
2021-12-28 20:49:56 +00:00
Bram Moolenaar
8c697e3698
patch 8.2.3927: Vim9: double free when using lambda
...
Problem: Vim9: double free when using lambda.
Solution: Don't free both cmdline and line_to_free.
2021-12-28 20:18:50 +00:00
Bram Moolenaar
7473a84cf9
patch 8.2.3924: Vim9: no error if something follows :enddef
...
Problem: Vim9: no error if something follows :enddef in a nested function.
Solution: Give an error. Move common code to a function.
2021-12-28 17:55:26 +00:00
Bram Moolenaar
4bf1006cae
patch 8.2.3923: Vim9: double free with split argument list in nested function
...
Problem: Vim9: double free if a nested function has a line break in the
argument list.
Solution: Set cmdlinep when freeing the previous line.
2021-12-28 17:23:12 +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
c553a21e18
patch 8.2.3907: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move error messages to errors.h. Avoid duplicates.
2021-12-26 20:20:34 +00:00
Bram Moolenaar
9c23f9bb5f
patch 8.2.3902: Vim9: double free with nested :def function
...
Problem: Vim9: double free with nested :def function.
Solution: Pass "line_to_free" from compile_def_function() and make sure
cmdlinep is valid.
2021-12-26 14:23:22 +00:00
Yegappan Lakshmanan
e7f4abd38b
patch 8.2.3889: duplicate code for translating script-local function name
...
Problem: Duplicate code for translating script-local function name.
Solution: Move the code to get_scriptlocal_funcname(). (Yegappan Lakshmanan,
closes #9393 )
2021-12-24 20:47:38 +00:00
Bram Moolenaar
e124204c4f
patch 8.2.3830: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move more error messages to errors.h.
2021-12-16 20:56:57 +00:00
Mike Williams
1821d1498c
patch 8.2.3816: compiler warning for posible loss of data on MS-Windows
...
Problem: Compiler warning for posible loss of data on MS-Windows.
Solution: Add type cast. (Mike Williams, closes #9349 )
2021-12-15 16:38:33 +00:00
Bram Moolenaar
57bc2333b1
patch 8.2.3812: Vim9: leaking memory in numbered function test
...
Problem: Vim9: leaking memory in numbered function test.
Solution: Skip "g:" when checking for numbered function. Clean up after
errors properly.
2021-12-15 12:06:43 +00:00
Bram Moolenaar
f8a79fc346
patch 8.2.3807: Vim9: can call import with star directly
...
Problem: Vim9: can call import with star directly.
Solution: Check that the import used star.
2021-12-14 12:06:16 +00:00
Bram Moolenaar
80d60910ff
patch 8.2.3799: edit test hangs or fails
...
Problem: Edit test hangs or fails.
Solution: Do not rethrow an exception when inside try/catch.
2021-12-13 19:14:52 +00:00
Bram Moolenaar
3b309f11db
patch 8.2.3798: a :def callback function postpones an error message
...
Problem: A :def callback function postpones an error message.
Solution: Display the error after calling the function. (closes #9340 )
2021-12-13 18:19:55 +00:00
Bram Moolenaar
851f86b951
patch 8.2.3796: the funcexe_T struct members are not named consistently
...
Problem: The funcexe_T struct members are not named consistently.
Solution: Prefix "fe_" to all the members.
2021-12-13 14:26:44 +00:00
Bram Moolenaar
33b968dc60
patch 8.2.3794: Vim9: cannot find script-local func using "s:"
...
Problem: Vim9: cannot find script-local func using "s:". (Yegappan
Lakshmanan)
Solution: Skip the "s:".
2021-12-13 11:31:04 +00:00
Bram Moolenaar
2ef9156b42
patch 8.2.3783: confusing error for using a variable as a function
...
Problem: Confusing error for using a variable as a function.
Solution: If a function is not found but there is a variable, give a more
useful error. (issue #9310 )
2021-12-11 16:14:07 +00:00
Bram Moolenaar
052ff291d7
patch 8.2.3782: Vim9: no error if a function shadows a script variable
...
Problem: Vim9: no error if a function shadows a script variable.
Solution: Check the function doesn't shadow a variable. (closes #9310 )
2021-12-11 13:54:46 +00:00
Yegappan Lakshmanan
4dc24eb5ad
patch 8.2.3756: might crash when callback is not valid
...
Problem: might crash when callback is not valid.
Solution: Check for valid callback. (Yegappan Lakshmanan, closes #9293 )
2021-12-07 12:23:57 +00:00
Bram Moolenaar
2336c376d5
patch 8.2.3753: Vim9: function unreferenced while called is never deleted
...
Problem: Vim9: function unreferenced while called is never deleted.
Solution: Delete a function when no longer referenced.
2021-12-06 15:06:54 +00:00
Bram Moolenaar
40bcec1bac
patch 8.2.3750: error messages are everywhere
...
Problem: Error messages are everywhere.
Solution: Move more error messages to errors.h and adjust the names.
2021-12-05 22:19:27 +00:00
Yegappan Lakshmanan
8658c759f0
patch 8.2.3725: cannot use a lambda for 'completefunc' and 'omnifunc'
...
Problem: Cannot use a lambda for 'completefunc' and 'omnifunc'.
Solution: Implement lambda support. (Yegappan Lakshmanan, closes #9257 )
2021-12-03 11:09:29 +00:00
Bram Moolenaar
eba3b7f664
patch 8.2.3705: cannot pass a lambda name to function() or funcref()
...
Problem: Cannot pass a lambda name to function() or funcref(). (Yegappan
Lakshmanan)
Solution: Handle a lambda name differently.
2021-11-30 18:25:08 +00:00
Bram Moolenaar
38453528c3
patch 8.2.3692: Vim9: cannot use :func inside a :def function
...
Problem: Vim9: cannot use :func inside a :def function.
Solution: Make it work.
2021-11-28 22:00:12 +00:00
Bram Moolenaar
d604d78e7b
patch 8.2.3634: error for already defined function uses wrong line number
...
Problem: Error for already defined function uses wrong line number.
Solution: Set SOURCING_LNUM before giving the error message. (closes #9085 )
2021-11-20 21:46:20 +00:00
Bram Moolenaar
a755fdbe80
patch 8.2.3633: Vim9: line number of lambda is off by one
...
Problem: Vim9: line number of lambda is off by one.
Solution: Add one to the line number. (closes #9083 )
2021-11-20 21:35:41 +00:00
Bram Moolenaar
844fb64a60
patch 8.2.3560: using freed memory with lambda
...
Problem: Using freed memory with lambda.
Solution: Do not free lines early, keep them until the expression is
finished.
2021-10-23 13:32:30 +01:00
Bram Moolenaar
5fe07d2e08
patch 8.2.3557: Vim9: cannot call imported funcref at script level
...
Problem: Vim9: cannot call imported funcref at script level.
Solution: Check for an imported function. (closes #9007 )
2021-10-22 22:17:53 +01:00
Bram Moolenaar
1d34189ecb
patch 8.2.3448: :endtry after function call that throws not found
...
Problem: :endtry after function call that throws not found.
Solution: Do check for following :endtry if an exception is being thrown.
(closes #8889 )
2021-09-18 15:25:52 +02:00
Bram Moolenaar
36f691f5f1
patch 8.2.3416: second error is reported while exception is being thrown
...
Problem: Second error is reported while exception is being thrown.
Solution: Do not check for trailing characters when already aborting.
(closes #8842 )
2021-09-08 15:33:30 +02:00
Bram Moolenaar
ddfc05100a
patch 8.2.3408: can delete a numbered function
...
Problem: Can delete a numbered function. (Naohiro Ono)
Solution: Disallow deleting a numbered function. (closes #8760 )
2021-09-06 20:56:56 +02:00
Bram Moolenaar
01dd6c3732
patch 8.2.3404: Vim9: no error for white space before "("
...
Problem: Vim9: no error for white space before "(".
Solution: Give an error, like in a compiled function.
2021-09-05 16:36:23 +02:00
naohiro ono
9aecf79c45
patch 8.2.3383: Vim9: completion for :disassemble adds parenthesis
...
Problem: Vim9: completion for :disassemble adds parenthesis.
Solution: Don't add parenthesis. (Naohiro Ono, closes #8802 )
2021-08-28 15:56:06 +02:00
Bram Moolenaar
4bba16d252
patch 8.2.3352: Vim9: error for nested :enddef has wrong line number
...
Problem: Vim9: error for nested :enddef has wrong line number.
Solution: Compute the line number.
2021-08-15 19:28:05 +02:00
Bram Moolenaar
33ea9fd4d8
patch 8.2.3317: Vim9: No error for missing white space before return type
...
Problem: Vim9: No error for missing white space before return type.
Solution: Check for white space. (closes #8733 )
2021-08-08 19:07:37 +02:00
Bram Moolenaar
63b9173693
patch 8.2.3297: cannot use all commands inside a {} block
...
Problem: Cannot use all commands inside a {} block after :command and
:autocmd.
Solution: Do consider \n to separate commands. (closes #8620 )
2021-08-05 20:40:03 +02:00
Bram Moolenaar
1321257317
patch 8.2.3273: autocmd test fails
...
Problem: Autocmd test fails.
Solution: Require white space before the "{" that starts a block.
2021-08-01 22:01:30 +02:00
Bram Moolenaar
e4db17fb6e
patch 8.2.3271: Vim9: cannot use :command or :au with block in :def function
...
Problem: Vim9: cannot use :command or :au with a block in a :def function.
Solution: Recognize the start of the block.
2021-08-01 21:19:43 +02:00
Bram Moolenaar
6e850a6900
patch 8.2.3241: Vim9: memory leak when function reports an error
...
Problem: Vim9: memory leak when function reports an error.
Solution: Clear the return value.
2021-07-28 22:21:23 +02:00
Bram Moolenaar
327d3ee455
patch 8.2.3237: when a builtin function gives an error processing continues
...
Problem: When a builtin function gives an error processing continues.
Solution: In Vim9 script return FAIL in get_func_tv().
2021-07-28 19:34:14 +02:00
Bram Moolenaar
6868634abd
patch 8.2.3235: cannot use lambda in {} block in user command
...
Problem: Cannot use lambda in {} block in user command. (Martin Tournoij)
Solution: Do not go over the end of the lambda.
2021-07-28 15:54:54 +02:00
Bram Moolenaar
2eb6fc3b52
patch 8.2.3216: Vim9: crash when using variable in a loop at script level
...
Problem: Vim9: crash when using variable in a loop at script level.
Solution: Do not clear the variable if a function was defined.
Do not create a new entry in sn_var_vals every time.
(closes #8628 )
2021-07-25 14:13:53 +02:00
Bram Moolenaar
e29a27f6f8
patch 8.2.3190: error messages are spread out
...
Problem: Error messages are spread out.
Solution: Move error messages to errors.h and give them a clear name.
2021-07-20 21:07:36 +02:00
Bram Moolenaar
ac2cd2b08f
patch 8.2.3185: Vim9: start of inline function found in comment line
...
Problem: Vim9: start of inline function found in comment line.
Solution: Do not check for inline function in comment line. (closes #8589 )
2021-07-19 21:04:23 +02:00