mirror of
https://github.com/neovim/neovim.git
synced 2025-01-01 17:23:36 -07:00
Remove code that is no longer needed by set shellslash
This commit is contained in:
parent
03bba32565
commit
d7b642cadb
@ -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('.'))
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user