Bram Moolenaar
43b69b39ac
patch 8.2.2310: Vim9: winsaveview() return type is too generic
...
Problem: Vim9: winsaveview() return type is too generic.
Solution: use dict<number> instead of dict<any>. (closes #7626 )
2021-01-07 20:23:33 +01:00
Bram Moolenaar
32b3f82010
patch 8.2.2306: Vim9: when using function reference type is not checked
...
Problem: Vim9: when using function reference type is not checked.
Solution: When using a function reference lookup the type and check the
argument types. (issue #7629 )
2021-01-06 21:59:39 +01:00
Bram Moolenaar
e5a2dc87fd
patch 8.2.2289: Vim9: 'cpo' can become empty
...
Problem: Vim9: 'cpo' can become empty.
Solution: Use empty_option instead of an empty string. Update quickfix
buffer after restoring 'cpo'. (closes #7608 )
2021-01-03 19:52:05 +01:00
Bram Moolenaar
17793ef23a
patch 8.2.2233: cannot convert a byte index into a character index
...
Problem: Cannot convert a byte index into a character index.
Solution: Add charidx(). (Yegappan Lakshmanan, closes #7561 )
2020-12-28 12:56:58 +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
193f6201b4
patch 8.2.1996: Vim9: invalid error for argument of extend()
...
Problem: Vim9: invalid error for argument of extend().
Solution: Check if the type could match. (closes #7299 )
2020-11-16 20:08:35 +01:00
Bram Moolenaar
29b281ba8d
patch 8.2.1974: Vim9: test for has('gui_running') fails with VIMDLL
...
Problem: Vim9: test for has('gui_running') fails with VIMDLL.
Solution: Adjust the #ifdef. (Ken Takata, closes #7276 )
2020-11-10 20:58:00 +01:00
Bram Moolenaar
ea696852e7
patch 8.2.1969: Vim9: map() may change the list or dict item type
...
Problem: Vim9: map() may change the list or dict item type.
Solution: Add mapnew().
2020-11-09 18:31:39 +01:00
Bram Moolenaar
8cebd43e97
patch 8.2.1968: Vim9: has() assumes a feature does not change dynamically
...
Problem: Vim9: has() assumes a feature does not change dynamically.
Solution: Check whether a feature may change dynamically. (closes #7265 )
2020-11-08 12:49:47 +01:00
Bram Moolenaar
0fd797eacd
patch 8.2.1960: warning for uninitialized variable
...
Problem: Warning for uninitialized variable.
Solution: Initialize the variable.
2020-11-05 20:46:32 +01:00
Bram Moolenaar
fbcbffe1ad
patch 8.2.1931: Vim9: arguments of extend() not checked at compile time
...
Problem: Vim9: arguments of extend() not checked at compile time.
Solution: Add argument type checking for extend().
2020-10-31 19:33:38 +01:00
Bram Moolenaar
a1224cb706
patch 8.2.1884: compiler warning for uninitialized variable
...
Problem: Compiler warning for uninitialized variable. (John Marriott)
Solution: Initialize with NULL.
2020-10-22 12:31:49 +02:00
Bram Moolenaar
ca17453e73
patch 8.2.1879: Vim9: argument types of insert() not checked when compiling
...
Problem: Vim9: argument types of insert() not checked when compiling.
Solution: Add argument type checks for insert().
2020-10-21 16:42:22 +02:00
Bram Moolenaar
b8f519e538
patch 8.2.1877: test for function list fails
...
Problem: Test for function list fails.
Solution: Move "obsolete" comments one line up.
2020-10-21 14:49:08 +02:00
Bram Moolenaar
94738d8fab
patch 8.2.1876: Vim9: argument types are not checked at compile time
...
Problem: Vim9: argument types for builtin functions are not checked at
compile time.
Solution: Add an argument type checking mechanism. Implement type checks for
one function.
2020-10-21 14:25:07 +02:00
Bram Moolenaar
403dc31f5a
patch 8.2.1858: Vim9: filter functions return number instead of bool
...
Problem: Vim9: filter functions return number instead of bool.
Solution: Return v:true instead of one. (closes #7144 )
2020-10-17 19:29:51 +02:00
Bram Moolenaar
391c362794
patch 8.2.1771: synIDattr() cannot get the value of ctermul
...
Problem: synIDattr() cannot get the value of ctermul.
Solution: Add the "ul" value for "what". (closes #7037 )
2020-09-29 20:59:17 +02:00
Bram Moolenaar
4934ad0e44
patch 8.2.1769: popup filter interferes with using :normal to move the cursor
...
Problem: A popup filter interferes with using :normal to move the cursor in
a popup.
Solution: Do not invoke the filter when ex_normal_busy is set.
2020-09-28 22:29:58 +02: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
8f187fc630
patch 8.2.1747: result of expand() unexpectedly depends on 'completeslash'
...
Problem: Result of expand() unexpectedly depends on 'completeslash'.
Solution: Temporarily reset 'completeslash'. (Yasuhiro Matsumoto,
closes #7021 )
2020-09-26 18:47:11 +02:00
Bram Moolenaar
6a33ef0deb
patch 8.2.1741: pathshorten() only supports using one character
...
Problem: pathshorten() only supports using one character.
Solution: Add an argument to control the length. (closes #7006 )
2020-09-25 22:42:48 +02:00
Bram Moolenaar
189832bf66
patch 8.2.1729: endless loop when ":normal" feeds popup window filter
...
Problem: Endless loop when ":normal" feeds popup window filter.
Solution: Add the ex_normal_busy_done flag.
2020-09-23 12:29:11 +02:00
Bram Moolenaar
99ca9c4868
patch 8.2.1727: a popup created with "cursorline" will ignore "firstline"
...
Problem: A popup created with "cursorline" will ignore "firstline".
Solution: When both "cursorline" and "firstline" are present put the cursor
on "firstline". (closes #7000 ) Add the "winid" argument to
getcurpos().
2020-09-22 21:55:41 +02:00
Bram Moolenaar
4f73b8e9cc
patch 8.2.1726: fuzzy matching only works on strings
...
Problem: Fuzzy matching only works on strings.
Solution: Support passing a dict. Add matchfuzzypos() to also get the match
positions. (Yegappan Lakshmanan, closes #6947 )
2020-09-22 20:33:50 +02:00
Bram Moolenaar
5e65423077
patch 8.2.1691: Vim9: list<any> is not accepted where list<number> is expected
...
Problem: Vim9: list<any> is not accepted where list<number> is expected.
Solution: Add functions to allocate and free a type_T, use it in
ISN_CHECKTYPE. (closes #6959 )
2020-09-16 15:22:00 +02:00
Bram Moolenaar
635414dd2f
patch 8.2.1665: cannot do fuzzy string matching
...
Problem: Cannot do fuzzy string matching.
Solution: Add matchfuzzy(). (Yegappan Lakshmanan, closes #6932 )
2020-09-11 22:25:15 +02:00
Bram Moolenaar
9bd5d879c2
patch 8.2.1631: test_fails() does not check the context of the line number
...
Problem: test_fails() does not check the context of the line number.
Solution: Use another argument to specify the context of the line number.
2020-09-06 21:47:48 +02:00
Bram Moolenaar
ad30470610
patch 8.2.1627: Vim9: cannot pass "true" to submatch/term_gettty/term_start
...
Problem: Vim9: cannot pass "true" to submatch(), term_gettty() and
term_start()
Solution: Use tv_get_bool_chk(). (closes #6888 , closes #6890 , closes #6889 )
2020-09-06 18:22:53 +02:00
Bram Moolenaar
3986b94b09
patch 8.2.1624: Vim9: cannot pass "true" to split(), str2nr() and strchars()
...
Problem: Vim9: cannot pass "true" to split(), str2nr() and strchars().
Solution: Use tv_get_bool_chk(). (closes #6884 , closes #6885 , closes #6886 )
2020-09-06 16:09:04 +02:00
Bram Moolenaar
7c27f337bf
patch 8.2.1619: Vim9: cannot pass "true" to spellsuggest()
...
Problem: Vim9: cannot pass "true" to spellsuggest().
Solution: Use tv_get_bool_chk(). (closes #6883 )
2020-09-05 22:45:55 +02:00
Bram Moolenaar
fcb6d7082d
patch 8.2.1616: Vim9: cannot pass "true" to synID()
...
Problem: Vim9: cannot pass "true" to synID().
Solution: Use tv_get_bool_chk(). (closes #6860 )
2020-09-05 21:41:56 +02:00
Bram Moolenaar
30788d3d37
patch 8.2.1615: Vim9: cannot pass "true" to searchdecl()
...
Problem: Vim9: cannot pass "true" to searchdecl().
Solution: use tv_get_bool_chk(). (closes #6881 )
2020-09-05 21:35:16 +02:00
Bram Moolenaar
ed6a430fae
patch 8.2.1611: Vim9: cannot pass "true" to nr2char()
...
Problem: Vim9: cannot pass "true" to nr2char().
Solution: use tv_get_bool_chk(). (closes #6878 )
2020-09-05 20:29:41 +02:00
Bram Moolenaar
a48f786787
patch 8.2.1610: Vim9: cannot pass "true" to list2str() and str2list()
...
Problem: Vim9: cannot pass "true" to list2str() and str2list().
Solution: Use tv_get_bool_chk(). (closes #6877 )
2020-09-05 20:16:57 +02:00
Bram Moolenaar
04637e243d
patch 8.2.1606: Vim9: cannot use "true" with has()
...
Problem: Vim9: cannot use "true" with has().
Solution: Use tv_get_bool(). (closes #6876 )
2020-09-05 18:45:29 +02:00
Bram Moolenaar
2df4731042
patch 8.2.1601: Vim9: cannot use 'true" with garbagecollect()
...
Problem: Vim9: cannot use 'true" with garbagecollect().
Solution: Use tv_get_bool(). (closes #6871 )
2020-09-05 17:30:44 +02:00
Bram Moolenaar
44b4a246b6
patch 8.2.1600: Vim9: cannot use "true" with deepcopy()
...
Problem: Vim9: cannot use "true" with deepcopy().
Solution: Use tv_get_bool_chk(). (closes #6867 )
2020-09-05 17:18:28 +02:00
Bram Moolenaar
24f7750ffa
patch 8.2.1592: Vim9: passing "true" to char2nr() fails
...
Problem: Vim9: passing "true" to char2nr() fails.
Solution: Use tv_get_bool_chk(). (closes #6865 )
2020-09-04 19:50:57 +02:00
Bram Moolenaar
077cc7aa0e
patch 8.2.1588: cannot read back the prompt of a prompt buffer
...
Problem: Cannot read back the prompt of a prompt buffer.
Solution: Add prompt_getprompt(). (Ben Jackson, closes #6851 )
2020-09-04 16:35:35 +02:00
Bram Moolenaar
04d594b9c1
patch 8.2.1577: Vim9: hasmapto()/mapcheck()/maparg() do nottake "true" arg
...
Problem: Vim9: hasmapto(), mapcheck() and maparg() do not take "true" as
argument.
Solution: Use tv_get_bool(). (closes #6822 , closes #6824 )
2020-09-02 22:25:35 +02:00
Bram Moolenaar
6c553f9c04
patch 8.2.1576: Vim9: index() does not take "true" as argument
...
Problem: Vim9: index() does not take "true" as argument.
Solution: Use tv_get_bool_chk(). (closes #6823 )
2020-09-02 22:10:34 +02:00
Bram Moolenaar
67ff97ded7
patch 8.2.1573: Vim9: getreg() does not take "true" as argument
...
Problem: Vim9: getreg() does not take "true" as argument.
Solution: Use tv_get_bool_chk(). (closes #6820 )
2020-09-02 21:45:54 +02:00
Bram Moolenaar
551d25e765
patch 8.2.1572: Vim9: expand() does not take "true" as argument
...
Problem: Vim9: expand() does not take "true" as argument.
Solution: Use tv_get_bool_chk(). (closes #6819 )
2020-09-02 21:37:56 +02:00
Bram Moolenaar
a5d3841177
patch 8.2.1569: Vim9: fixes not tested; failure in getchangelist()
...
Problem: Vim9: fixes for functions not tested; failure in getchangelist().
Solution: Add tests. (closes #6813 , closes #6815 , closes #6817 )
2020-09-02 21:02:35 +02:00
Bram Moolenaar
0b39c3fd4c
patch 8.2.1544: cannot translate messages in a Vim script
...
Problem: Cannot translate messages in a Vim script.
Solution: Add gettext(). Try it out for a few messages in the options
window.
2020-08-30 15:52:10 +02:00
Bram Moolenaar
4e4473c927
patch 8.2.1536: cannot get the class of a character; emoji widths are wrong
...
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.
2020-08-28 22:24:57 +02:00
Bram Moolenaar
08aac3c619
patch 8.2.1535: it is not possible to specify cell widths of characters
...
Problem: It is not possible to specify cell widths of characters.
Solution: Add setcellwidths().
2020-08-28 21:04:24 +02:00
Bram Moolenaar
6a950581da
patch 8.2.1533: Vim9: error when passing getreginfo() result to setreg()
...
Problem: Vim9: error when passing getreginfo() result to setreg().
Solution: Use dict_get_bool() for "isunnamed". (closes #6784 )
2020-08-28 16:39:33 +02:00
Bram Moolenaar
6c53fca023
patch 8.2.1517: cannot easily get the character under the cursor
...
Problem: Cannot easily get the character under the cursor.
Solution: Add the {chars} argument to strpart().
2020-08-23 17:34:46 +02:00
Bram Moolenaar
66250c932e
patch 8.2.1491: Vim9: crash when compiling heredoc lines start with comment
...
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 )
2020-08-20 15:02:42 +02:00