diff --git a/autoload/gist.vim b/autoload/gist.vim index 7f803c6..89eb28a 100644 --- a/autoload/gist.vim +++ b/autoload/gist.vim @@ -450,6 +450,7 @@ function! s:GistGet(gistid, clipboard) abort endif endif setlocal noswapfile + silent! exec 'bdel' s:bufprefix.a:gistid.'/'.fnameescape(filename) silent exec 'noautocmd file' s:bufprefix.a:gistid.'/'.fnameescape(filename) endif set undolevels=-1