diff options
author | erw7 <erw7.github@gmail.com> | 2019-08-03 10:56:47 +0900 |
---|---|---|
committer | erw7 <erw7.github@gmail.com> | 2019-08-17 12:29:09 +0900 |
commit | d7b642cadb0bda7780539f6eb2f27ac5283821ab (patch) | |
tree | dd1cc7665e3dd3e8528d4903ae46bae8a7b681d9 | |
parent | 03bba3256514adb431e0578ace829ef5bf04442c (diff) | |
download | rneovim-d7b642cadb0bda7780539f6eb2f27ac5283821ab.tar.gz rneovim-d7b642cadb0bda7780539f6eb2f27ac5283821ab.tar.bz2 rneovim-d7b642cadb0bda7780539f6eb2f27ac5283821ab.zip |
Remove code that is no longer needed by set shellslash
-rw-r--r-- | src/nvim/testdir/test_mksession.vim | 5 | ||||
-rw-r--r-- | src/nvim/testdir/test_undo.vim | 5 |
2 files changed, 4 insertions, 6 deletions
diff --git a/src/nvim/testdir/test_mksession.vim b/src/nvim/testdir/test_mksession.vim index d77dac69c7..4e6d96ee48 100644 --- a/src/nvim/testdir/test_mksession.vim +++ b/src/nvim/testdir/test_mksession.vim @@ -206,11 +206,10 @@ func Test_mkview_loadview_with_viewdir() " The directory Xviewdir/ should have been created and the view " should be stored in that directory. - let pathsep = has('win32') ? '\' : '/' - call assert_equal('Xviewdir' . pathsep . + call assert_equal('Xviewdir/' . \ substitute( \ substitute( - \ expand('%:p'), pathsep, '=+', 'g'), ':', '=-', 'g') . '=1.vim', + \ expand('%:p'), '/', '=+', 'g'), ':', '=-', 'g') . '=1.vim', \ glob('Xviewdir/*')) call assert_equal(1, &number) call assert_match('\*:mkview\*$', getline('.')) 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 |