| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Problem: Vim9: passing "true" to char2nr() fails.
Solution: Use tv_get_bool_chk(). (closes #6865)
|
|
|
|
|
| |
Problem: Cannot read back the prompt of a prompt buffer.
Solution: Add prompt_getprompt(). (Ben Jackson, closes #6851)
|
|
|
|
|
|
| |
Problem: Vim9: hasmapto(), mapcheck() and maparg() do not take "true" as
argument.
Solution: Use tv_get_bool(). (closes #6822, closes #6824)
|
|
|
|
|
| |
Problem: Vim9: index() does not take "true" as argument.
Solution: Use tv_get_bool_chk(). (closes #6823)
|
|
|
|
|
| |
Problem: Vim9: getreg() does not take "true" as argument.
Solution: Use tv_get_bool_chk(). (closes #6820)
|
|
|
|
|
| |
Problem: Vim9: expand() does not take "true" as argument.
Solution: Use tv_get_bool_chk(). (closes #6819)
|
|
|
|
|
| |
Problem: Vim9: fixes for functions not tested; failure in getchangelist().
Solution: Add tests. (closes #6813, closes #6815, closes #6817)
|
|
|
|
|
|
| |
Problem: Cannot translate messages in a Vim script.
Solution: Add gettext(). Try it out for a few messages in the options
window.
|
|
|
|
|
|
|
| |
Problem: Cannot get the class of a character; emoji widths are wrong in
some environments.
Solution: Add charclass(). Update some emoji widths. Add script to check
emoji widths.
|
|
|
|
|
| |
Problem: It is not possible to specify cell widths of characters.
Solution: Add setcellwidths().
|
|
|
|
|
| |
Problem: Vim9: error when passing getreginfo() result to setreg().
Solution: Use dict_get_bool() for "isunnamed". (closes #6784)
|
|
|
|
|
| |
Problem: Cannot easily get the character under the cursor.
Solution: Add the {chars} argument to strpart().
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
| |
Problem: Vim9: error for list index uses wrong line number.
Solution: Set source line number. (closes #6724) Add a way to assert the
line number of the error with assert_fails().
|
|
|
|
|
| |
Problem: Vim9: return type of keys() is list<any>.
Solution: Should be list<string>. (closes #6711)
|
|
|
|
|
| |
Problem: Vim9: always converting to string for ".." leads to mistakes.
Solution: Only automatically convert simple types.
|
|
|
|
|
|
|
| |
Problem: The Mac GUI implementation is outdated and probably doesn't even
work.
Solution: Remove the Mac GUI code. The MacVim project provides the
supported Vim GUI version.
|
|
|
|
|
| |
Problem: Vim9: return type of maparg() not adjusted for fourth argument.
Solution: Check if fourth argument is present. (closes #6645)
|
|
|
|
|
| |
Problem: Vim9: return type of getreg() is always a string.
Solution: Use list of strings when there are three arguments. (closes #6633)
|
|
|
|
|
| |
Problem: The "trailing characters" error can be hard to understand.
Solution: Add the trailing characters to the message.
|
|
|
|
|
| |
Problem: Crash with EXITFREE when split() fails.
Solution: Restore 'cpoptions'.
|
|
|
|
|
| |
Problem: Cannot use getbufinfo() as a method.
Solution: Support using getbufinfo() as a method. (closes #6458)
|
|
|
|
|
| |
Problem: Wrong method argument for appendbufline().
Solution: Use FEARG_3.
|
|
|
|
|
| |
Problem: Vim9: builtin function method call only supports first argument.
Solution: Shift arguments when needed. (closes #6305, closes #6419)
|
|
|
|
|
| |
Problem: Vim9: return type of reverse() is any.
Solution: Use the type of the first argument.
|
|
|
|
|
| |
Problem: Vim9: return type of remove() is any.
Solution: Use the member type of the first argument, if known.
|
|
|
|
|
| |
Problem: Vim9: return type of insert() is any.
Solution: Use type of the first argument.
|
|
|
|
|
| |
Problem: Vim9: return type of filter() is any.
Solution: Use type of the argument.
|
|
|
|
|
| |
Problem: Vim9: return type of extend() is any.
Solution: Use type of the argument.
|
|
|
|
|
| |
Problem: Vim9: return type of copy() and deepcopy() is any.
Solution: Use type of the argument.
|
|
|
|
|
| |
Problem: Vim9: return type of argv() is always any.
Solution: Use list<string> if there is no argument.
|
|
|
|
|
| |
Problem: Vim9: return type of add() is not specific enough.
Solution: Return the type of the first argument. (closes #6395)
|
|
|
|
|
| |
Problem: Vim9: return type of repeat() is not specific enough.
Solution: Return the type of the first argument. (closes #6395)
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
Problem: Vim9: return type of getqflist() is wrong.
Solution: Let the return type depend on the arguments. Also for
getloclist(). (closes #6367)
|
|
|
|
|
| |
Problem: Coverity complains about ignoring dict_add() return value.
Solution: Add (void).
|
|
|
|
|
|
| |
Problem: Vim9: script cannot use line continuation like in a :def function.
Solution: Pass the getline function pointer to the eval() functions. Use it
for addition and multiplication operators.
|
|
|
|
|
|
| |
Problem: setreg() does not always clear the register.
Solution: Clear the register if the dict argument is empty. (Andy Massimino,
closes #3370)
|
|
|
|
|
| |
Problem: Vim9: return type of sort() is too generic.
Solution: Get type from the first argument. (closes #6292)
|
|
|
|
|
| |
Problem: Getting directory contents is always case sorted.
Solution: Add sort options and v:collate. (Christian Brabandt, closes #6229)
|
|
|
|
|
| |
Problem: Terminal properties are not available in Vim script.
Solution: Add the terminalprops() function.
|
|
|
|
|
|
| |
Problem: Cannot use "z=" when 'spell' is off.
Solution: Make "z=" work even when 'spell' is off. (Christian Brabandt,
Gary Johnson, closes #6227)
|
|
|
|
|
| |
Problem: Flattening a list with existing code is slow.
Solution: Add flatten(). (Mopp, closes #3676)
|
|
|
|
|
|
| |
Problem: Many type casts are used for vim_strnsave().
Solution: Make the length argument size_t instead of int. (Ken Takata,
closes #5633) Remove some type casts.
|
|
|
|
|
|
| |
Problem: Cannot save and restore a register properly.
Solution: Add getreginfo() and make setreg() accept a dictionary. (Andy
Massimino, closes #3370)
|
|
|
|
|
| |
Problem: Duplicate code for evaluating expression argument.
Solution: Merge the code and make the use more flexible.
|
|
|
|
|
| |
Problem: Search() cannot skip over matches like searchpair() can.
Solution: Add an optional "skip" argument. (Christian Brabandt, closes #861)
|
|
|
|
|
| |
Problem: Assert_equalfile() does not take a third argument.
Solution: Implement the third argument. (Gary Johnson)
|
|
|
|
|
| |
Problem: Cannot use octal numbers in scriptversion 4.
Solution: Add the "0o" notation. (Ken Takata, closes #5304)
|
|
|
|
|
| |
Problem: No reduce() function.
Solution: Add a reduce() function. (closes #5481)
|