0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

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 #5358)
This commit is contained in:
Bram Moolenaar 2019-12-14 17:53:27 +01:00
parent 5021225656
commit 6e43b30a85
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
6,
/**/ /**/
5, 5,
/**/ /**/