Mercurial > vim
comparison src/testdir/test_display.vim @ 18890:623afba3566a v8.2.0006
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 14 Dec 2019 18:00:04 +0100 |
parents | a686560cf6c9 |
children | c9cc9e5c87e0 |
comparison
equal
deleted
inserted
replaced
18889:c4bf9e3b7dd7 | 18890:623afba3566a |
---|---|
184 | 184 |
185 " check a long file name does not result in the hit-enter prompt | 185 " check a long file name does not result in the hit-enter prompt |
186 func Test_edit_long_file_name() | 186 func Test_edit_long_file_name() |
187 CheckScreendump | 187 CheckScreendump |
188 | 188 |
189 let longName = 'x'->repeat(&columns) | 189 let longName = 'x'->repeat(min([&columns, 255])) |
190 call writefile([], longName) | 190 call writefile([], longName) |
191 let buf = RunVimInTerminal('-N -u NONE ' .. longName, #{rows: 8}) | 191 let buf = RunVimInTerminal('-N -u NONE ' .. longName, #{rows: 8}) |
192 | 192 |
193 call VerifyScreenDump(buf, 'Test_long_file_name_1', {}) | 193 call VerifyScreenDump(buf, 'Test_long_file_name_1', {}) |
194 | 194 |