Mercurial > vim
changeset 30411:77d0e311754a v9.0.0541
patch 9.0.0541: terminal pwd test fails with a very long path name
Commit: https://github.com/vim/vim/commit/ee7c8d999beb847457f768757b1bdcd76391c1f4
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Sep 22 12:57:06 2022 +0100
patch 9.0.0541: terminal pwd test fails with a very long path name
Problem: Terminal pwd test fails with a very long path name.
Solution: Join two lines.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 22 Sep 2022 14:00:08 +0200 |
parents | dce60925aaba |
children | 680784cf7080 |
files | src/testdir/test_terminal.vim src/version.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/test_terminal.vim +++ b/src/testdir/test_terminal.vim @@ -630,7 +630,9 @@ func Test_terminal_cwd() endif call mkdir('Xtermdir') let buf = term_start(cmd, {'cwd': 'Xtermdir'}) - call WaitForAssert({-> assert_equal('Xtermdir', fnamemodify(getline(1), ":t"))}) + " if the path is very long it may be split over two lines, join them + " together + call WaitForAssert({-> assert_equal('Xtermdir', fnamemodify(getline(1) .. getline(2), ":t"))}) exe buf . 'bwipe' call delete('Xtermdir', 'rf')