vim-patch:8.2.0006: test using long file name may fail

Problem:    Test using long file name may fail. (Vladimir Lomov)
Solution:   Limit the name length. (Christian Brabandt, closes vim/vim#5358)
6e43b30a85

N/A patches for version.c:

vim-patch:8.2.1002: test may fail when run directly

Problem:    Test may fail when run directly.
Solution:   Check if g:run_nr exists. (Christian Brabandt, closes vim/vim#6285)
ceb2e77510
This commit is contained in:
Jan Edmund Lazo 2020-10-20 18:21:50 -04:00
parent 5621bc66d6
commit 87f31b4c86
No known key found for this signature in database
GPG Key ID: 64915E6E9F735B15

View File

@ -189,7 +189,7 @@ endfunc
func Test_edit_long_file_name()
CheckScreendump
let longName = 'x'->repeat(&columns)
let longName = 'x'->repeat(min([&columns, 255]))
call writefile([], longName)
let buf = RunVimInTerminal('-N -u NONE ' .. longName, #{rows: 8})