Delete undo file explicitly ref: #174

Thanks: @hokorobi
This commit is contained in:
haya14busa 2014-08-09 17:47:58 +09:00
parent b2951b070b
commit fd556fd9de

View File

@ -356,6 +356,7 @@ function! EasyMotion#NextPrevious(visualmode, direction) " {{{
return s:EasyMotion_is_cancelled return s:EasyMotion_is_cancelled
endfunction " }}} endfunction " }}}
" }}} " }}}
" }}}
" Helper Functions: {{{ " Helper Functions: {{{
" -- Message ----------------------------- " -- Message -----------------------------
function! s:Message(message) " {{{ function! s:Message(message) " {{{
@ -1064,6 +1065,7 @@ function! s:PromptUser(groups) "{{{
" Restore undo tree {{{ " Restore undo tree {{{
if s:should_use_wundo() && filereadable(s:undo_file) if s:should_use_wundo() && filereadable(s:undo_file)
silent execute "rundo" s:undo_file silent execute "rundo" s:undo_file
call delete(s:undo_file)
unlet s:undo_file unlet s:undo_file
else else
" Break undo history (undobreak) " Break undo history (undobreak)