diff --git a/autoload/storage.vim b/autoload/storage.vim index 3b67224..44c6a12 100644 --- a/autoload/storage.vim +++ b/autoload/storage.vim @@ -34,14 +34,10 @@ function! storage#write(cmd, dict, path) abort silent execute 'normal ggdd' silent execute 'write' setlocal nobuflisted - try - echo storage#put_cmd(a:cmd, tempfile, a:path) - catch - finally - silent execute 'edit' fnameescape(a:path) - endtry - " NOTE: - " Expected to be still 'modified' if storage#put_cmd failed + + echo storage#put_cmd(a:cmd, tempfile, a:path) + + silent execute 'edit' fnameescape(a:path) setlocal nomodified let &hidden = current_hidden endfunction