Bram Moolenaar
f57b43c230
patch 8.2.3005: Vim9: using a void value does not give a proper error message
...
Problem: Vim9: using a void value does not give a proper error message.
Solution: Give a clear error message. (clodes #8387 )
2021-06-15 22:13:27 +02:00
Bram Moolenaar
7a2217bedd
patch 8.2.2948: substitute() accepts a number but not a float expression
...
Problem: Substitute() accepts a number but not a float expression.
Solution: Also accept a float. (closes #8331 )
2021-06-06 12:33:49 +02:00
Bram Moolenaar
1328bde9d4
patch 8.2.2944: Vim9: no error when using job or channel as a string
...
Problem: Vim9: no error when using job or channel as a string.
Solution: Be more strict about conversion to string. (closes #8312 )
2021-06-05 20:51:38 +02:00
Bram Moolenaar
68db996b62
patch 8.2.2846: Vim9: "echo Func()" does not give an error for using void
...
Problem: Vim9: "echo Func()" does not give an error for a function without
a return value.
Solution: Give an error. Be more specific about why a value is invalid.
2021-05-09 23:19:22 +02:00
Bram Moolenaar
24f720998f
patch 8.2.2844: Vim9: memory leak when using searchpair()
...
Problem: Vim9: memory leak when using searchpair().
Solution: Free the v_instr field.
2021-05-07 20:43:54 +02:00
Bram Moolenaar
f18332fb9e
patch 8.2.2842: Vim9: skip argument to searchpair() is not compiled
...
Problem: Vim9: skip argument to searchpair() is not compiled.
Solution: Add VAR_INSTR.
2021-05-07 17:55:55 +02:00
Bram Moolenaar
e8e3078184
patch 8.2.2752
2021-04-10 21:46:05 +02:00
Bram Moolenaar
f6bdd82c7e
patch 8.2.2671: error for line number in legacy script
...
Problem: Error for line number in legacy script.
Solution: Check for number type.
2021-03-28 16:26:41 +02:00
Bram Moolenaar
b2ac7d0663
patch 8.2.2670: Vim9: error for append(0, text)
...
Problem: Vim9: error for append(0, text).
Solution: Check for negative number. (closes #8022 )
2021-03-28 15:46:16 +02:00
Bram Moolenaar
32105ae88f
patch 8.2.2664: Vim9: not enough function arguments checked for string
...
Problem: Vim9: not enough function arguments checked for string.
Solution: Check in balloon functions. Refactor function arguments.
2021-03-27 18:59:25 +01:00
Bram Moolenaar
f28f2ac425
patch 8.2.2646: Vim9: error for not using string doesn't mentionargument
...
Problem: Vim9: error for not using string doesn't mention argument.
Solution: Add argument number.
2021-03-22 22:21:26 +01:00
Bram Moolenaar
418a29f0ff
patch 8.2.2497: no error when using more than one character for a register
...
Problem: No error when using more than one character for a register name.
Solution: In Vim9 script check for a single character string. (closes #7814 )
Fix that VAR_BOOL and VAR_SPECIAL are not considered equal.
2021-02-10 22:23:41 +01:00
Bram Moolenaar
3445320839
patch 8.2.2435: setline() gives an error for some types
...
Problem: setline() gives an error for some types.
Solution: Allow any type, convert each item to a string.
2021-01-31 13:08:38 +01:00
Bram Moolenaar
f2b26bcf8f
patch 8.2.2434: Vim9: no error when compiling str2nr() with a number
...
Problem: Vim9: no error when compiling str2nr() with a number.
Solution: Add argument type checks. (closes #7759 )
2021-01-30 23:05:11 +01:00
Bram Moolenaar
6f02b00bb0
patch 8.2.2324: not easy to get mark en cursor posotion by character count
...
Problem: Not easy to get mark en cursor posotion by character count.
Solution: Add functions that use character index. (Yegappan Lakshmanan,
closes #7648 )
2021-01-10 20:22:54 +01:00
Bram Moolenaar
cff40ff986
patch 8.2.2320: Vim9: no error for comparing bool with string
...
Problem: Vim9: no error for comparing bool with string.
Solution: Check for wrong types when comparing. (closes #7639 )
2021-01-09 16:21:37 +01:00
Bram Moolenaar
657137ca48
patch 8.2.2319: "exptype_T" can be read as "expected type"
...
Problem: "exptype_T" can be read as "expected type".
Solution: Rename to "exprtype_T", expression type.
2021-01-09 15:45:23 +01:00
Bram Moolenaar
a79925a0a8
patch 8.2.2302: Vim9: using an option value may use uninitialized memory
...
Problem: Vim9: using an option value may use uninitialized memory.
Solution: Clear v_lock. (closes #7620 )
2021-01-05 17:50:28 +01:00
Bram Moolenaar
dd1f426bd6
patch 8.2.2254: Vim9: bool option type is number
...
Problem: Vim9: bool option type is number.
Solution: Have get_option_value() return a different value for bool and
number options. (closes #7583 )
2020-12-31 17:41:01 +01:00
Bram Moolenaar
9a963377b4
patch 8.2.2184: Vim9: no error when using "2" for a line number
...
Problem: Vim9: no error when using "2" for a line number.
Solution: Give an error message if the line number is invalid. (closes #7492 )
2020-12-21 21:58:46 +01:00
Bram Moolenaar
2a9d5d386b
patch 8.2.2133: Vim9: checking for a non-empty string is too strict
...
Problem: Vim9: checking for a non-empty string is too strict.
Solution: Check for any string. (closes #7447 )
2020-12-12 18:58:40 +01:00
Bram Moolenaar
7bb4e74c38
patch 8.2.2117: some functions use any value as a string
...
Problem: Some functions use any value as a string.
Solution: Check that the value is a non-empty string.
2020-12-09 12:41:50 +01:00
Bram Moolenaar
d92cc130fb
patch 8.2.2012: Vim9: confusing error message when using bool wrongly
...
Problem: Vim9: confusing error message when using bool wrongly.
Solution: Mention "Bool" instead of "Special". (closes #7323 )
2020-11-18 17:17:15 +01:00
Bram Moolenaar
ea2d407f9c
patch 8.2.1977: Vim9: error for using a string in a condition is confusing
...
Problem: Vim9: error for using a string in a condition is confusing.
Solution: Give a more specific error. Also adjust the compile time type
checking for || and &&.
2020-11-12 12:08:51 +01:00
Bram Moolenaar
bade44e5ca
patch 8.2.1751: using 2 where bool is expected may throw an error
...
Problem: Using 2 where bool is expected may throw an error.
Solution: Make this backwards compatible.
2020-09-26 22:39:24 +02:00
Bram Moolenaar
a187c43cfe
patch 8.2.1698: cannot lock a variable in legacy Vim script like in Vim9
...
Problem: Cannot lock a variable in legacy Vim script like in Vim9.
Solution: Make ":lockvar 0" work.
2020-09-16 21:08:28 +02:00
Bram Moolenaar
119f557230
patch 8.2.1571: Vim9: count() third argument cannot be "true"
...
Problem: Vim9: count() third argument cannot be "true".
Solution: use tv_get_bool_chk(). (closes #6818 )
2020-09-02 21:31:22 +02:00
Bram Moolenaar
3767e3a330
patch 8.2.1562: Vim9: error when using "%" where a buffer is expected
...
Problem: Vim9: error when using "%" where a buffer is expected.
Solution: Add tv_get_buf_from_arg(). (closes #6814 )
2020-09-01 23:06:01 +02:00
Bram Moolenaar
d70840ed68
patch 8.2.1506: Vim9: no error when using a number other than 0 or 1 as bool
...
Problem: Vim9: no error when using a number other than 0 or 1 as bool.
Solution: Check the number is 0 or 1.
2020-08-22 15:06:35 +02:00
Bram Moolenaar
e15eebd202
patch 8.2.1480: Vim9: skip expression in search() gives error
...
Problem: Vim9: skip expression in search() gives error.
Solution: use tv_get_bool() eval_expr_to_bool(). (closes #6729 )
2020-08-18 19:11:38 +02:00
Bram Moolenaar
36967b32fd
patch 8.2.1475: Vim9: can't use v:true for option flags
...
Problem: Vim9: can't use v:true for option flags.
Solution: Add tv_get_bool_chk(). (closes #6725 )
2020-08-17 21:41:02 +02:00
Bram Moolenaar
56acb0943e
patch 8.2.1465: Vim9: subscript not handled properly
...
Problem: Vim9: subscript not handled properly.
Solution: Adjust error message. Remove dead code. Disallow string to
number conversion in scripts.
2020-08-16 14:48:19 +02:00
Bram Moolenaar
c71f36a889
patch 8.2.1263: Vim9: comperators use 'ignorecase' in Vim9 script
...
Problem: Vim9: comperators use 'ignorecase' in Vim9 script.
Solution: Ignore 'ignorecase'. Use true and false instead of 1 and 0.
(closes #6497 )
2020-07-21 21:31:00 +02:00
Bram Moolenaar
9a78e6df17
patch 8.2.1111: inconsistent naming of get_list_tv() and eval_dict()
...
Problem: Inconsistent naming of get_list_tv() and eval_dict().
Solution: Rename get_list_tv() to eval_list(). Similarly for eval_number(),
eval_string(), eval_lit_string() and a few others.
2020-07-01 18:29:55 +02:00
Bram Moolenaar
1e0b7b11db
patch 8.2.1014: using "name" for a string result is confusing
...
Problem: Using "name" for a string result is confusing.
Solution: Rename to "end".
2020-06-19 19:30:53 +02:00
Bram Moolenaar
fccd93f091
patch 8.2.0867: using \{xxx} for encoding a modifier is not nice
...
Problem: Using \{xxx} for encoding a modifier is not nice.
Solution: Use \<*xxx> instead, since it's the same as \<xxx> but producing a
different code.
2020-05-31 22:06:51 +02:00
Bram Moolenaar
ebe9d34aa0
patch 8.2.0855: GUI tests fail because the test doesn't use a modifier
...
Problem: GUI tests fail because the test doesn't use a modifier.
Solution: Add "\{xxx}" to be able to encode a modifier.
2020-05-30 21:52:54 +02:00
Bram Moolenaar
367d59e6ba
patch 8.2.0847: typval related code is spread out
...
Problem: Typval related code is spread out.
Solution: Move code to new typval.c file. (Yegappan Lakshmanan, closes #6093 )
2020-05-30 17:06:14 +02:00