comparison src/testdir/test_display.vim @ 18866:a686560cf6c9 v8.1.2419

patch 8.1.2419: with a long file name the hit-enter prompt appears Commit: https://github.com/vim/vim/commit/0efd1bdcf4891f9ef2537e4c3d50a379186dca5f Author: Bram Moolenaar <Bram@vim.org> Date: Wed Dec 11 19:00:04 2019 +0100 patch 8.1.2419: with a long file name the hit-enter prompt appears Problem: With a long file name the hit-enter prompt appears. (J. Lewis Muir) Solution: When checking for text to wrap don't do this when outputing a CR.
author Bram Moolenaar <Bram@vim.org>
date Wed, 11 Dec 2019 19:15:04 +0100
parents 956a9bc4e25a
children 623afba3566a
comparison
equal deleted inserted replaced
18865:1b50a0a7fdc1 18866:a686560cf6c9
179 179
180 " clean up 180 " clean up
181 call StopVimInTerminal(buf) 181 call StopVimInTerminal(buf)
182 call delete(filename) 182 call delete(filename)
183 endfunc 183 endfunc
184
185 " check a long file name does not result in the hit-enter prompt
186 func Test_edit_long_file_name()
187 CheckScreendump
188
189 let longName = 'x'->repeat(&columns)
190 call writefile([], longName)
191 let buf = RunVimInTerminal('-N -u NONE ' .. longName, #{rows: 8})
192
193 call VerifyScreenDump(buf, 'Test_long_file_name_1', {})
194
195 call term_sendkeys(buf, ":q\<cr>")
196
197 " clean up
198 call StopVimInTerminal(buf)
199 call delete(longName)
200 endfunc
201