• R/O
  • SSH

vim: 提交

Mirror of the Vim source from https://github.com/vim/vim


Commit MetaInfo

修订版623afba3566ae0fa7ff54d787b434062195934cd (tree)
时间2019-12-15 02:00:04
作者Bram Moolenaar <Bram@vim....>
CommiterBram Moolenaar

Log Message

patch 8.2.0006: test using long file name may fail

Commit: https://github.com/vim/vim/commit/6e43b30a854d9aca451a794d368443b90f259a7e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Dec 14 17:53:27 2019 +0100

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 https://github.com/vim/vim/issues/5358)

更改概述

差异

diff -r c4bf9e3b7dd7 -r 623afba3566a src/testdir/test_display.vim
--- a/src/testdir/test_display.vim Sat Dec 14 17:30:04 2019 +0100
+++ b/src/testdir/test_display.vim Sat Dec 14 18:00:04 2019 +0100
@@ -186,7 +186,7 @@
186186 func Test_edit_long_file_name()
187187 CheckScreendump
188188
189- let longName = 'x'->repeat(&columns)
189+ let longName = 'x'->repeat(min([&columns, 255]))
190190 call writefile([], longName)
191191 let buf = RunVimInTerminal('-N -u NONE ' .. longName, #{rows: 8})
192192
diff -r c4bf9e3b7dd7 -r 623afba3566a src/version.c
--- a/src/version.c Sat Dec 14 17:30:04 2019 +0100
+++ b/src/version.c Sat Dec 14 18:00:04 2019 +0100
@@ -743,6 +743,8 @@
743743 static int included_patches[] =
744744 { /* Add new patch number below this line */
745745 /**/
746+ 6,
747+/**/
746748 5,
747749 /**/
748750 4,
Show on old repository browser