Skip to content

Commit

Permalink
patch 9.0.0541: terminal pwd test fails with a very long path name
Browse files Browse the repository at this point in the history
Problem:    Terminal pwd test fails with a very long path name.
Solution:   Join two lines.
  • Loading branch information
brammool committed Sep 22, 2022
1 parent 6f98114 commit ee7c8d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/testdir/test_terminal.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -699,6 +699,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
541,
/**/
540,
/**/
Expand Down

0 comments on commit ee7c8d9

Please sign in to comment.