summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-09-22 12:57:06 +0100
committerBram Moolenaar <Bram@vim.org>2022-09-22 12:57:06 +0100
commitee7c8d999beb847457f768757b1bdcd76391c1f4 (patch)
tree39571fc832d7c4fe8fa320bf510fdd1fde0c52b3
parent6f98114e4a5db3917c4f9d2fec09e11b4b0d0be5 (diff)
patch 9.0.0541: terminal pwd test fails with a very long path namev9.0.0541
Problem: Terminal pwd test fails with a very long path name. Solution: Join two lines.
-rw-r--r--src/testdir/test_terminal.vim4
-rw-r--r--src/version.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/src/testdir/test_terminal.vim b/src/testdir/test_terminal.vim
index fd427fe809..e6548079a9 100644
--- 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')
diff --git a/src/version.c b/src/version.c
index a9c99e8681..654c71c121 100644
--- a/src/version.c
+++ b/src/version.c
@@ -700,6 +700,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 541,
+/**/
540,
/**/
539,