diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2019-08-18 13:31:28 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-08-18 13:31:28 +0200 |
| commit | d351f1c871ee9901db389e164789ea33d3e1871f (patch) | |
| tree | 5258690fd76a31d3befeb32ffae08f5b61eebfab /src/nvim/testdir/test_undo.vim | |
| parent | c5efa9c352d63febd30764c04738f81e512b19f6 (diff) | |
| parent | 3453a2ccb07f7de4f0160b906a70a72ded89ca14 (diff) | |
| download | rneovim-d351f1c871ee9901db389e164789ea33d3e1871f.tar.gz rneovim-d351f1c871ee9901db389e164789ea33d3e1871f.tar.bz2 rneovim-d351f1c871ee9901db389e164789ea33d3e1871f.zip | |
Merge #10679 from erw7/fix-oldtest-on-windows
Diffstat (limited to 'src/nvim/testdir/test_undo.vim')
| -rw-r--r-- | src/nvim/testdir/test_undo.vim | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nvim/testdir/test_undo.vim b/src/nvim/testdir/test_undo.vim index 0cb5dc4033..86674889ef 100644 --- a/src/nvim/testdir/test_undo.vim +++ b/src/nvim/testdir/test_undo.vim @@ -376,10 +376,9 @@ funct Test_undofile() " Replace windows drive such as C:... into C%... let cwd = substitute(cwd, '^\([a-zA-Z]\):', '\1%', 'g') endif - let pathsep = has('win32') ? '\' : '/' - let cwd = substitute(cwd . pathsep . 'Xundofoo', pathsep, '%', 'g') + let cwd = substitute(cwd . '/Xundofoo', '/', '%', 'g') if has('persistent_undo') - call assert_equal('Xundodir' . pathsep . cwd, undofile('Xundofoo')) + call assert_equal('Xundodir/' . cwd, undofile('Xundofoo')) else call assert_equal('', undofile('Xundofoo')) endif |