zeertzjq
e3a529bc87
patch 8.2.5058: input() does not handle composing characters properly
...
Problem: input() does not handle composing characters properly.
Solution: Use mb_cptr2char_adv() instead of mb_ptr2char_adv().
(closes #10527 )
2022-06-05 19:01:37 +01:00
LemonBoy
0f7a3e1de6
patch 8.2.5019: cannot get the first screen column of a character
...
Problem: Cannot get the first screen column of a character.
Solution: Let virtcol() optionally return a list. (closes #10482 ,
closes #7964 )
2022-05-26 12:10:37 +01:00
Bram Moolenaar
b0855f5324
patch 8.2.4983: colors test fails in the GUI
...
Problem: Colors test fails in the GUI.
Solution: Reset g:terminal_ansi_colors.
2022-05-20 10:39:18 +01:00
LemonBoy
b2b3acbf2b
patch 8.2.4982: colors in terminal window are not 100% correct
...
Problem: Colors in terminal window are not 100% correct.
Solution: Use g:terminal_ansi_colors as documented. (closes #10429 ,
closes #7227 closes #10347 )
2022-05-20 10:10:34 +01:00
LemonBoy
40fd7e6652
patch 8.2.4875: MS-Windows: some .exe files are not recognized
...
Problem: MS-Windows: some .exe files are not recognized.
Solution: Parse APPEXECLINK junctions. (closes #10302 )
2022-05-05 20:18:16 +01:00
Yasuhiro Matsumoto
05cf63e9bd
patch 8.2.4860: MS-Windows: always uses current directory for executables
...
Problem: MS-Windows: always uses current directory for executables.
Solution: Check the NoDefaultCurrentDirectoryInExePath environment variable.
(Yasuhiro Matsumoto, closes #10341 )
2022-05-03 11:02:28 +01:00
zeertzjq
db08887f24
patch 8.2.4858: K_SPECIAL may be escaped twice
...
Problem: K_SPECIAL may be escaped twice.
Solution: Avoid double escaping. (closes #10340 )
2022-05-02 22:53:45 +01:00
LemonBoy
dca1d40cd0
patch 8.2.4838: checking for absolute path is not trivial
...
Problem: Checking for absolute path is not trivial.
Solution: Add isabsolutepath(). (closes #10303 )
2022-04-28 15:26:33 +01:00
zeertzjq
478700336d
patch 8.2.4696: delete() with "rf" argument does not report a failure
...
Problem: delete() with "rf" argument does not report a failure.
Solution: Return -1 if the directory could not be removed. (closes #10078 )
2022-04-05 15:31:01 +01:00
LemonBoy
a3157a476b
patch 8.2.4671: 'wildignorecase' is sometimes not used for glob()
...
Problem: 'wildignorecase' is sometimes not used for glob().
Solution: Also use 'wildignorecase' when there are no wildcards.
(closes #10066 , closes #8350 )
2022-04-03 11:58:31 +01:00
Sean Dewar
10792feebd
patch 8.2.4568: getmousepos() does not compute the column below the last line
...
Problem: getmousepos() does not compute the column below the last line.
Solution: Also compute the column when the mouse is below the last line.
(Sean Dewar, closes #9946 )
2022-03-15 09:46:54 +00:00
Bram Moolenaar
533870a985
patch 8.2.4559: getmousepos() returns the screen column
...
Problem: getmousepos() returns the screen column. (Ernie Rael)
Solution: Return the text column, as documented.
2022-03-13 15:52:44 +00:00
Bram Moolenaar
986b0fd0c5
patch 8.2.4555: getmousepos() returns the wrong column
...
Problem: getmousepos() returns the wrong column. (Ernie Rael)
Solution: Limit to the text size, not the number of bytes.
2022-03-13 12:06:07 +00:00
zeertzjq
ad6c45f625
patch 8.2.4427: getchar() may return modifiers if no character is available
...
Problem: getchar() may return modifiers if no character is available.
Solution: Do not process modifiers when there is no character. (closes #9806 )
2022-02-20 19:05:10 +00:00
Bram Moolenaar
62b191c387
patch 8.2.4361: Vim9: some tests fail
...
Problem: Vim9: some tests fail.
Solution: Fix the tests, mostly by removing "s:".
2022-02-12 20:34:50 +00:00
Bram Moolenaar
62aec93bfd
patch 8.2.4257: Vim9: finding global function without g: prefix inconsistent
...
Problem: Vim9: finding global function without g: prefix but not finding
global variable is inconsistent.
Solution: Require using g: for a global function. Change the vim9.vim
script into a Vim9 script with exports. Fix that import in legacy
script does not work.
2022-01-29 21:45:34 +00:00
Bram Moolenaar
b3d83980d2
patch 8.2.4234: test_garbagecollect_now() does not check v:testing
...
Problem: test_garbagecollect_now() does not check v:testing as documented.
Solution: Give an error if v:testing is not set.
2022-01-27 19:59:47 +00:00
Bram Moolenaar
1450112eef
patch 8.2.4212: window title test still fails in some configurations
...
Problem: Window title test still fails in some configurations.
Solution: Explicitly set the 'title' option.
2022-01-24 22:32:28 +00:00
Bram Moolenaar
3a8ad5918b
patch 8.2.4211: window title test still fails in some configurations
...
Problem: Window title test still fails in some configurations.
Solution: Use WaitForAssert().
2022-01-24 22:18:24 +00:00
Bram Moolenaar
a6c09a7c20
patch 8.2.4210: window title test fails in some configurations
...
Problem: Window title test fails in some configurations.
Solution: Only run the test if the title can be obtained.
2022-01-24 22:02:15 +00:00
Bram Moolenaar
dff97e65eb
patch 8.2.4208: using setbufvar() may change the window title
...
Problem: Using setbufvar() may change the window title.
Solution: Do not redraw when creating the autocommand window. (closes #9613 )
2022-01-24 20:00:55 +00:00
Bram Moolenaar
86b3ab4fa0
patch 8.2.3854: Vim9: inconsistent arguments for test functions
...
Problem: Vim9: inconsistent arguments for test functions.
Solution: When :def function and script have different arguments use a list
with two items instead of a separate function.
2021-12-19 18:33:23 +00:00
Bram Moolenaar
4f16e9de98
patch 8.2.3786: test fails because of using Vim9 syntax in legacy function
...
Problem: Test fails because of using Vim9 syntax in legacy function.
Solution: Add "call".
2021-12-11 18:46:29 +00:00
Bram Moolenaar
2ef9156b42
patch 8.2.3783: confusing error for using a variable as a function
...
Problem: Confusing error for using a variable as a function.
Solution: If a function is not found but there is a variable, give a more
useful error. (issue #9310 )
2021-12-11 16:14:07 +00:00
Bram Moolenaar
c4ec338fb8
patch 8.2.3766: converting a funcref to a string leaves out "g:"
...
Problem: Converting a funcref to a string leaves out "g:", causing the
meaning of the name depending on the context.
Solution: Prepend "g:" for a global function.
2021-12-09 16:40:18 +00:00
naohiro ono
75c30e96cf
patch 8.2.3537: mode() does not return the right value in 'operatorfunc'
...
Problem: mode() does not return the right value in 'operatorfunc'.
Solution: Reset finish_op while calling 'operatorfunc'.
2021-10-19 11:15:41 +01:00
Bram Moolenaar
f08b0eb869
patch 8.2.3518: Test_xrestore sometimes fails
...
Problem: Test_xrestore sometimes fails.
Solution: Mark the test as flayky. Move marking test as flaky to the test
instead of listing them in runtest.
2021-10-16 13:00:14 +01:00
zeertzjq
cc8cd44533
patch 8.2.3466: completion submode not indicated for virtual replace
...
Problem: Completion submode not indicated for virtual replace.
Solution: Add submode to "Rv". (closes #8945 )
2021-10-03 15:19:14 +01:00
Bram Moolenaar
72406a4bd2
patch 8.2.3461: cannot distinguish Normal and Terminal-Normal mode
...
Problem: Cannot distinguish Normal and Terminal-Normal mode.
Solution: Make mode() return "nt" for Terminal-Normal mode. (issue #8856 )
2021-10-02 16:34:55 +01:00
Dominique Pelle
d176ca3dde
patch 8.2.3421: a bit of code is not covered by tests
...
Problem: A bit of code is not covered by tests.
Solution: Add a few more test cases. (Dominique Pellé, closes #8857 )
2021-09-09 20:45:34 +02:00
Bram Moolenaar
bf634a0a8b
patch 8.2.3256: executable test may fail on new Ubuntu system
...
Problem: Executable test may fail on new Ubuntu system.
Solution: Consider /usr/bin/cat and /bin/cat the same.
2021-07-31 17:20:04 +02:00
zeertzjq
eaf3f36168
patch 8.2.3236: mode() does not indicate using CTRL-O in Select mode
...
Problem: mode() does not indicate using CTRL-O in Select mode.
Solution: Use "vs" and similar. (closes #8640 )
2021-07-28 16:51:53 +02:00
Yegappan Lakshmanan
4490ec4e83
patch 8.2.3229: Vim9: runtime and compile time type checks are not the same
...
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 )
2021-07-27 22:00:44 +02:00
Bram Moolenaar
1840a7b4e3
patch 8.2.3158: strange error message when using islocked() with a number
...
Problem: Strange error message when using islocked() with a number.
(Yegappan Lakshmanan)
Solution: Check that the name is empty.
2021-07-13 20:32:29 +02:00
Yegappan Lakshmanan
a26f56f675
patch 8.2.3084: Vim9: builtin function argument types are not checked
...
Problem: Vim9: builtin function argument types are not checked at compile
time.
Solution: Add argument types. (Yegappan Lakshmanan, closes #8503 )
2021-07-03 11:58:12 +02:00
Christian Brabandt
72463f883c
patch 8.2.3083: crash when passing null string to charclass()
...
Problem: Crash when passing null string to charclass().
Solution: Bail out when string pointer is NULL. (Christian Brabandt,
closes #8498 , closes #8260 )
2021-07-02 20:19:31 +02:00
Yegappan Lakshmanan
054794c20f
patch 8.2.3061: testing the shell option is incomplete and spread out
...
Problem: Testing the shell option is incomplete and spread out.
Solution: Move shell tests to one file and increase coverage. (Yegappan
Lakshmanan, closes #8464 )
2021-06-27 12:07:49 +02:00
Bram Moolenaar
61a417b7c1
patch 8.2.3007: Vim9: test for void value fails
...
Problem: Vim9: test for void value fails.
Solution: Adjust expected error. Do not make a copy of void.
2021-06-15 22:54:28 +02:00
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