| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
Problem: Check for optional bool type has confusing return type.
Solution: Explicitly return OK.
|
|
|
|
|
|
| |
Problem: Check for legacy script is incomplete. (Naohiro Ono)
Solution: Also check the :legacy modifier. Use for string concatenation
with "." and others (issue #8756)
|
|
|
|
|
| |
Problem: v_lock not set when getting value of environment variable.
Solution: Set v_lock to zero.
|
|
|
|
|
| |
Problem: Vim9: cannot ignore quotes in number at the command line.
Solution: Use in_vim9script() so that after ":vim9" quotes are ignored.
|
|
|
|
|
| |
Problem: Cannot use single quote in a float number for readability.
Solution: Support single quotes like in numbers. (closes #8713)
|
|
|
|
|
| |
Problem: Error messages have the wrong text.
Solution: Adjust the error message.
|
|
|
|
|
|
| |
Problem: system() does not work without a second argument.
Solution: Do not require a second argument. (Yegappan Lakshmanan,
closes #8651, closes #8650)
|
|
|
|
|
|
| |
Problem: Vim9: runtime and compile time type checks are not the same.
Solution: Add more runtime type checks for builtin functions. (Yegappan
Lakshmanan, closes #8646)
|
|
|
|
|
| |
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8632)
|
|
|
|
|
|
| |
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks. Fix type check for matchaddpos().
(Yegappan Lakshmanan, closes #8619)
|
|
|
|
|
| |
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks. (Yegappan Lakshmanan, closes #8611)
|
|
|
|
|
|
| |
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks, simplify some. (Yegappan
Lakshmanan, closes #8598)
|
|
|
|
|
|
| |
Problem: Vim9: argument types are not checked at compile time.
Solution: Add several more type checks, also at runtime. (Yegappan
Lakshmanan, closes #8587)
|
|
|
|
|
| |
Problem: Vim9: no type error for comparing number with string.
Solution: Add a runtime type check. (closes #8571)
|
|
|
|
|
| |
Problem: Vim9: argument types are not checked at compile time.
Solution: Add more type checks. (Yegappan Lakshmanan, closes #8581)
|
|
|
|
|
| |
Problem: Vim9: argument types are not checked at compile time.
Solution: Add more type checks. (Yegappan Lakshmanan, closes #8560)
|
|
|
|
|
| |
Problem: Vim9: builtin function arguments not checked at compile time.
Solution: Add more type checks. (Yegappan Lakshmanan, closes #8539)
|
|
|
|
|
| |
Problem: Error messages are spread out.
Solution: Move some error messages to errors.h. Use clearer names.
|
|
|
|
|
| |
Problem: Vim9: test for void value fails.
Solution: Adjust expected error. Do not make a copy of void.
|
|
|
|
|
| |
Problem: Vim9: using a void value does not give a proper error message.
Solution: Give a clear error message. (clodes #8387)
|
|
|
|
|
| |
Problem: Substitute() accepts a number but not a float expression.
Solution: Also accept a float. (closes #8331)
|
|
|
|
|
| |
Problem: Vim9: no error when using job or channel as a string.
Solution: Be more strict about conversion to string. (closes #8312)
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Problem: Vim9: memory leak when using searchpair().
Solution: Free the v_instr field.
|
|
|
|
|
| |
Problem: Vim9: skip argument to searchpair() is not compiled.
Solution: Add VAR_INSTR.
|
| |
|
|
|
|
|
| |
Problem: Error for line number in legacy script.
Solution: Check for number type.
|
|
|
|
|
| |
Problem: Vim9: error for append(0, text).
Solution: Check for negative number. (closes #8022)
|
|
|
|
|
| |
Problem: Vim9: not enough function arguments checked for string.
Solution: Check in balloon functions. Refactor function arguments.
|
|
|
|
|
| |
Problem: Vim9: error for not using string doesn't mention argument.
Solution: Add argument number.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Problem: setline() gives an error for some types.
Solution: Allow any type, convert each item to a string.
|
|
|
|
|
| |
Problem: Vim9: no error when compiling str2nr() with a number.
Solution: Add argument type checks. (closes #7759)
|
|
|
|
|
|
| |
Problem: Not easy to get mark en cursor posotion by character count.
Solution: Add functions that use character index. (Yegappan Lakshmanan,
closes #7648)
|
|
|
|
|
| |
Problem: Vim9: no error for comparing bool with string.
Solution: Check for wrong types when comparing. (closes #7639)
|
|
|
|
|
| |
Problem: "exptype_T" can be read as "expected type".
Solution: Rename to "exprtype_T", expression type.
|
|
|
|
|
| |
Problem: Vim9: using an option value may use uninitialized memory.
Solution: Clear v_lock. (closes #7620)
|
|
|
|
|
|
| |
Problem: Vim9: bool option type is number.
Solution: Have get_option_value() return a different value for bool and
number options. (closes #7583)
|
|
|
|
|
| |
Problem: Vim9: no error when using "2" for a line number.
Solution: Give an error message if the line number is invalid. (closes #7492)
|
|
|
|
|
| |
Problem: Vim9: checking for a non-empty string is too strict.
Solution: Check for any string. (closes #7447)
|
|
|
|
|
| |
Problem: Some functions use any value as a string.
Solution: Check that the value is a non-empty string.
|
|
|
|
|
| |
Problem: Vim9: confusing error message when using bool wrongly.
Solution: Mention "Bool" instead of "Special". (closes #7323)
|
|
|
|
|
|
| |
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 &&.
|
|
|
|
|
| |
Problem: Using 2 where bool is expected may throw an error.
Solution: Make this backwards compatible.
|
|
|
|
|
| |
Problem: Cannot lock a variable in legacy Vim script like in Vim9.
Solution: Make ":lockvar 0" work.
|
|
|
|
|
| |
Problem: Vim9: count() third argument cannot be "true".
Solution: use tv_get_bool_chk(). (closes #6818)
|
|
|
|
|
| |
Problem: Vim9: error when using "%" where a buffer is expected.
Solution: Add tv_get_buf_from_arg(). (closes #6814)
|
|
|
|
|
| |
Problem: Vim9: no error when using a number other than 0 or 1 as bool.
Solution: Check the number is 0 or 1.
|
|
|
|
|
| |
Problem: Vim9: skip expression in search() gives error.
Solution: use tv_get_bool() eval_expr_to_bool(). (closes #6729)
|
|
|
|
|
| |
Problem: Vim9: can't use v:true for option flags.
Solution: Add tv_get_bool_chk(). (closes #6725)
|