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:
parent
5021225656
commit
6e43b30a85
@ -186,7 +186,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})
|
||||
|
||||
|
@ -742,6 +742,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
6,
|
||||
/**/
|
||||
5,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user