Bram Moolenaar
22db0d549f
patch 8.2.2977: crash when using a null function reference
...
Problem: Crash when using a null function reference. (Naohiro Ono)
Solution: Check for an invalid function name. (closes #8367 )
2021-06-12 12:16:55 +02:00
Bram Moolenaar
3a7503c34c
patch 8.2.2957: using getchar() in Vim9 script is problematic
...
Problem: Using getchar() in Vim9 script is problematic.
Solution: Add getcharstr(). (closes #8343 )
2021-06-07 18:29:17 +02:00
Bram Moolenaar
3cfa5b16b0
patch 8.2.2949: tests failing because no error for float to string conversion
...
Problem: Tests failing because there is no error for float to string
conversion.
Solution: Change the check for failure to check for correct result. Make
some conversions strict in Vim9 script.
2021-06-06 14:14:39 +02:00
Bram Moolenaar
b54abeeafb
patch 8.2.2921: E704 for script local variable is not backwards compatible
...
Problem: E704 for script local variable is not backwards compatible.
(Yasuhiro Matsumoto)
Solution: Only give the error in Vim9 script. Also check for function-local
variable.
2021-06-02 11:49:23 +02:00
Bram Moolenaar
6f1d2aa437
patch 8.2.2920: still a way to shadow a builtin function
...
Problem: Still a way to shadow a builtin function. (Yasuhiro Matsumoto)
Solution: Check the key when using extend(). (issue #8302 )
2021-06-01 21:21:55 +02:00
Bram Moolenaar
3d9c4eefe6
patch 8.2.2918: builtin function can be shadowed by global variable
...
Problem: Builtin function can be shadowed by global variable.
Solution: Check for builtin function before variable. (Yasuhiro Matsumoto,
closes #8302 )
2021-05-31 22:15:26 +02:00
Yegappan Lakshmanan
34fcb69724
patch 8.2.2886: various pieces of code not covered by tests
...
Problem: Various pieces of code not covered by tests.
Solution: Add a few more tests. (Yegappan Lakshmanan, closes #8255 )
2021-05-25 20:14:00 +02:00
Yegappan Lakshmanan
611728f806
patch 8.2.2881: various pieces of code not covered by tests
...
Problem: Various pieces of code not covered by tests.
Solution: Add a few more tests. (Yegappan Lakshmanan, closes #8245 )
2021-05-24 15:15:47 +02:00
=?UTF-8?q?Luka=20Marku=C5=A1i=C4=87?=
5cf94577cf
patch 8.2.2875: cancelling inputlist() after a digit does not return zero
...
Problem: Cancelling inputlist() after a digit does not return zero.
Solution: Always return zero when cancelling. (closes #8231 )
2021-05-20 21:14:20 +02:00
Yegappan Lakshmanan
46aa6f93ac
patch 8.2.2873: not enough tests for writing buffers
...
Problem: Not enough tests for writing buffers.
Solution: Add a few more tests. (Yegappan Lakshmanan, closes #8229 )
2021-05-19 17:15:04 +02:00
Dominique Pelle
fe8ebdbe5c
patch 8.2.2848: crash whn calling partial
...
Problem: Crash whn calling partial.
Solution: Check for NULL pointer. (Dominique Pellé, closes #8202 )
2021-05-13 14:55:55 +02:00
Dominique Pelle
6d37e8e3ba
patch 8.2.2837: various code lines not covered by tests
...
Problem: Various code lines not covered by tests.
Solution: Add test cases. (Dominique Pellé, closes #8178 )
2021-05-06 17:36:55 +02:00
Bram Moolenaar
b47bed2f7a
patch 8.2.2764: memory leak when default function argument is allocated
...
Problem: Memory leak when default function argument is allocated.
Solution: Free the expression result.
2021-04-14 17:06:43 +02:00
Bram Moolenaar
1f448d906b
patch 8.2.2643: various code not covered by tests
...
Problem: Various code not covered by tests.
Solution: Add a few more test. (Yegappan Lakshmanan, closes #7995 )
2021-03-22 19:37:06 +01:00
Bram Moolenaar
f4fcedc59d
patch 8.2.2608: character input not fully tested
...
Problem: Character input not fully tested.
Solution: Add more tests. (Yegappan Lakshmanan, closes #7963 )
2021-03-15 18:36:20 +01:00
Bram Moolenaar
ab65fc77c5
patch 8.2.2466: max() and min() can give many error messages
...
Problem: Max() and min() can give many error messages.
Solution: Bail out at the first error. (closes #1039 , closes #7778 )
2021-02-04 22:07:16 +01:00
Bram Moolenaar
a387083b2f
patch 8.2.2259: Test_Executable() fails when using chroot
...
Problem: Test_Executable() fails when using chroot.
Solution: Ignore the difference between "sbin" and "bin".
2021-01-01 14:20:44 +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
67322bf74a
patch 8.2.2100: insufficient testing for function range and dict
...
Problem: Insufficient testing for function range and dict.
Solution: Add a few tests. (Dominique Pellé, closes #7428 )
2020-12-06 15:03:19 +01:00
Bram Moolenaar
f8ca03bf91
patch 8.2.2065: using map() and filter() on a range() is inefficient
...
Problem: Using map() and filter() on a range() is inefficient.
Solution: Do not materialize the range. (closes #7388 )
2020-11-28 20:32:29 +01:00
Bram Moolenaar
f637bceb61
patch 8.2.2035: MS-Windows: some tests may fail
...
Problem: MS-Windows: some tests may fail.
Solution: Avoid test failures. (Yegappan Lakshmanan, closes #7346 )
2020-11-23 18:14:56 +01:00
Bram Moolenaar
aab9fada4a
patch 8.2.1832: readdirex() error is displayed as a message
...
Problem: readdirex() error is displayed as a message. (Yegappan Lakshmanan)
Solution: Use semsg() instead of smsg().
2020-10-11 14:28:11 +02:00
Bram Moolenaar
50c4e9e08f
patch 8.2.1804: resolve('/') returns an empty string
...
Problem: resolve('/') returns an empty string.
Solution: Don't remove single slash. (closes #7074 )
2020-10-05 20:38:06 +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
531be47ac5
patch 8.2.1736: failure to compile a pattern not tested much
...
Problem: Failure to compile a pattern not tested much.
Solution: Add tests where a pattern fails to compile. (Yegappan Lakshmanan,
closes #7004 )
2020-09-23 22:38:05 +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
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
e2e4075fad
patch 8.2.1593: tests do not check the error number properly
...
Problem: Tests do not check the error number properly.0
Solution: Add a colon after the error number. (closes #6869 )
2020-09-04 21:18:46 +02:00
Bram Moolenaar
c05d1c043a
patch 8.2.1591: using winheight('.') in tests works but is wrong
...
Problem: Using winheight('.') in tests works but is wrong.
Solution: Use winheight(0). (issue #6863 )
2020-09-04 18:38:06 +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
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
1b04ce2d40
patch 8.2.1505: not all file read and writecode is tested
...
Problem: Not all file read and writecode is tested.
Solution: Add a few tests. (Dominique Pellé, closes #6764 )
2020-08-21 22:46:11 +02:00
Bram Moolenaar
6d91bcb4d2
patch 8.2.1432: various inconsistencies in test files
...
Problem: Various inconsistencies in test files.
Solution: Add modelines where they were missing. Use Check commands instead
of silently skipping over tests. Adjust indents and comments.
(Ken Takata, closes #6695 )
2020-08-12 18:50:36 +02:00
Bram Moolenaar
9d48956681
patch 8.2.1326: Vim9: skipping over white space after list
...
Problem: Vim9: skipping over white space after list.
Solution: Do not skip white space, a following [] would be misinterpreted.
(closes #6552 ) Fix a few side effects.
2020-07-30 20:08:50 +02:00
Bram Moolenaar
9b7bf9e98f
patch 8.2.1183: assert_fails() checks the last error message
...
Problem: assert_fails() checks the last error message.
Solution: Check the first error, it is more relevant. Fix all the tests
that rely on the old behavior.
2020-07-11 22:14:59 +02:00
Bram Moolenaar
bdd2c290d3
patch 8.2.1040: not enough testing for movement commands
...
Problem: Not enough testing for movement commands.
Solution: Add more tests. (Yegappan Lakshmanan, closes #6313 )
2020-06-22 21:34:30 +02:00
Bram Moolenaar
e17f8817a1
patch 8.2.0995: insufficient testing for the readdir() sort option
...
Problem: Insufficient testing for the readdir() sort option.
Solution: Add a few more tests. (Christian Brabandt, closes #6278 )
2020-06-17 20:30:44 +02:00
Bram Moolenaar
a1bc6f1293
patch 8.2.0990: Using duplicate error number
...
Problem: Using duplicate error number.
Solution: Use an unused error number. Add a test for it.
2020-06-16 22:27:39 +02:00
Bram Moolenaar
84cf6bd81b
patch 8.2.0988: getting directory contents is always case sorted
...
Problem: Getting directory contents is always case sorted.
Solution: Add sort options and v:collate. (Christian Brabandt, closes #6229 )
2020-06-16 20:03:43 +02:00
Bram Moolenaar
c70222d12a
patch 8.2.0986: MS-Windows: functions test fails
...
Problem: MS-Windows: functions test fails.
Solution: Only simplify ///path on Unix.
2020-06-15 23:18:12 +02:00
Bram Moolenaar
fdcbe3c3fe
patch 8.2.0985: simplify() does not remove slashes from "///path"
...
Problem: Simplify() does not remove slashes from "///path".
Solution: Reduce > 2 slashes to one. (closes #6263 )
2020-06-15 21:41:56 +02:00
Bram Moolenaar
ea1233fccf
patch 8.2.0949: strptime() does not use DST
...
Problem: Strptime() does not use DST.
Solution: Set the tm_isdst field to -1. (Tomáš Janoušek, closes #6230 )
2020-06-10 16:54:13 +02:00
Bram Moolenaar
ab54032f29
patch 8.2.0947: readdirex() doesn't handle broken link properly
...
Problem: Readdirex() doesn't handle broken link properly.
Solution: Small fixes to readdirex(). (Christian Brabandt, closes #6226 ,
closes #6213 )
2020-06-10 15:55:36 +02:00
Bram Moolenaar
eebd555733
patch 8.2.0946: cannot use "q" to cancel a number prompt
...
Problem: Cannot use "q" to cancel a number prompt.
Solution: Recognize "q" instead of ignoring it.
2020-06-10 15:45:57 +02:00
Bram Moolenaar
441d60efd8
patch 8.2.0888: readdirex() returns size -2 for a directory
...
Problem: Readdirex() returns size -2 for a directory.
Solution: Add missing "else". (Ken Takata, closes #6185 )
2020-06-02 22:19:50 +02:00
Bram Moolenaar
c17e66c5c0
patch 8.2.0886: cannot use octal numbers in scriptversion 4
...
Problem: Cannot use octal numbers in scriptversion 4.
Solution: Add the "0o" notation. (Ken Takata, closes #5304 )
2020-06-02 21:38:22 +02:00
Bram Moolenaar
6c9ba04280
patch 8.2.0875: getting attributes for directory entries is slow
...
Problem: Getting attributes for directory entries is slow.
Solution: Add readdirex(). (Ken Takata, closes #5619 )
2020-06-01 16:09:41 +02:00
Bram Moolenaar
2245ae18e3
patch 8.2.0868: trim() always trims both ends
...
Problem: trim() always trims both ends.
Solution: Add an argument to only trim the beginning or end. (Yegappan
Lakshmanan, closes #6126 )
2020-05-31 22:20:36 +02:00
Bram Moolenaar
95da136142
patch 8.2.0850: MS-Windows: exepath() works different from cmd.exe
...
Problem: MS-Windows: exepath() works different from cmd.exe.
Solution: Make exepath() work better on MS-Windows. (closes #6115 )
2020-05-30 18:37:55 +02:00