1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar
2022-09-22 12:57:06 +01:00
parent 6f98114e4a
commit ee7c8d999b
2 changed files with 5 additions and 1 deletions

View File

@@ -630,7 +630,9 @@ func Test_terminal_cwd()
endif endif
call mkdir('Xtermdir') call mkdir('Xtermdir')
let buf = term_start(cmd, {'cwd': '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' exe buf . 'bwipe'
call delete('Xtermdir', 'rf') call delete('Xtermdir', 'rf')

View File

@@ -699,6 +699,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
541,
/**/ /**/
540, 540,
/**/ /**/