From: Bram Moolenaar Date: Sun, 23 Sep 2018 17:36:15 +0000 (+0200) Subject: patch 8.1.0429: no test for :lcd with 'shellslash' X-Git-Tag: v8.1.0429 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c75878c923034b883090aef3f08f565513d98f4d;p=vim patch 8.1.0429: no test for :lcd with 'shellslash' Problem: No test for :lcd with 'shellslash'. Solution: Add a test. (Daniel Hahler, closes #3475) --- diff --git a/src/testdir/test_getcwd.vim b/src/testdir/test_getcwd.vim index 334b89077..5d97295e9 100644 --- a/src/testdir/test_getcwd.vim +++ b/src/testdir/test_getcwd.vim @@ -98,3 +98,15 @@ function Test_GetCwd() call assert_equal("z Xdir3 1", GetCwdInfo(1, tp_nr)) call assert_equal(g:topdir, getcwd(-1)) endfunc + +function Test_GetCwd_lcd_shellslash() + new + let root = fnamemodify('/', ':p') + exe 'lcd '.root + let cwd = getcwd() + if !exists('+shellslash') || &shellslash + call assert_equal(cwd[-1:], '/') + else + call assert_equal(cwd[-1:], '\') + endif +endfunc diff --git a/src/version.c b/src/version.c index 724c9aa5e..c62e484e8 100644 --- a/src/version.c +++ b/src/version.c @@ -794,6 +794,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 429, /**/ 428, /**/