mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 00:10:07 +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()
|
autocmd BufWritePre * call SpaceVim#plugins#mkdir#CreateCurrent()
|
||||||
augroup END
|
augroup END
|
||||||
let tempfile = tempname() . '/test/test'
|
let tempfile = tempname() . '/test/test'
|
||||||
|
" '/home/runner/.cache/SpaceVim/undofile' for undo file: permission denied
|
||||||
|
let undofile = &undofile
|
||||||
|
set noundofile
|
||||||
exe 'e' tempfile
|
exe 'e' tempfile
|
||||||
w
|
w
|
||||||
AssertEqual filereadable(tempfile), 1
|
AssertEqual filereadable(tempfile), 1
|
||||||
bwipeout
|
bwipeout
|
||||||
|
let &undofile = undofile
|
||||||
unlet tempfile
|
unlet tempfile
|
||||||
|
unlet undofile
|
||||||
augroup mkdir_test
|
augroup mkdir_test
|
||||||
au!
|
au!
|
||||||
augroup END
|
augroup END
|
||||||
|
Loading…
Reference in New Issue
Block a user