mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-23 10:20:05 +08:00
test(mkdir): disable undofile option
This commit is contained in:
parent
773d2f8b0e
commit
7b4580c1c7
@ -4,11 +4,16 @@ Execute ( SpaceVim plugin: mkdir.vim ):
|
||||
autocmd BufWritePre * call SpaceVim#plugins#mkdir#CreateCurrent()
|
||||
augroup END
|
||||
let tempfile = tempname() . '/test/test'
|
||||
" '/home/runner/.cache/SpaceVim/undofile' for undo file: permission denied
|
||||
let undofile = &undofile
|
||||
set noundofile
|
||||
exe 'e' tempfile
|
||||
w
|
||||
AssertEqual filereadable(tempfile), 1
|
||||
bwipeout
|
||||
let &undofile = undofile
|
||||
unlet tempfile
|
||||
unlet undofile
|
||||
augroup mkdir_test
|
||||
au!
|
||||
augroup END
|
||||
|
Loading…
Reference in New Issue
Block a user