Better error handling when opening a file of which a swapfile exists
Ref #569
This commit is contained in:
parent
76f51f1dba
commit
bd88ea968b
@ -736,6 +736,9 @@ function! vimwiki#base#edit_file(command, filename, anchor, ...)
|
|||||||
echomsg 'Vimwiki: The current file is modified. Hint: Take a look at'
|
echomsg 'Vimwiki: The current file is modified. Hint: Take a look at'
|
||||||
\ ''':h g:vimwiki_autowriteall'' to see how to save automatically.'
|
\ ''':h g:vimwiki_autowriteall'' to see how to save automatically.'
|
||||||
return
|
return
|
||||||
|
catch /E325:/
|
||||||
|
echom 'Vimwiki: Vim couldn''t open the file, probably because a swapfile already exists. See :h E325.'
|
||||||
|
return
|
||||||
endtry
|
endtry
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user