From 87f31b4c869c49529469e189d8f908398de7755c Mon Sep 17 00:00:00 2001 From: Jan Edmund Lazo Date: Tue, 20 Oct 2020 18:21:50 -0400 Subject: 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) https://github.com/vim/vim/commit/6e43b30a854d9aca451a794d368443b90f259a7e 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) https://github.com/vim/vim/commit/ceb2e7751089bd417c6250d63e28616483b5796b --- src/nvim/testdir/test_display.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim') diff --git a/src/nvim/testdir/test_display.vim b/src/nvim/testdir/test_display.vim index 66b016c8b2..c702b44b88 100644 --- a/src/nvim/testdir/test_display.vim +++ b/src/nvim/testdir/test_display.vim @@ -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}) -- cgit