GPGCleanup: Allow the buffer to be hidden on exit
When Vim has decided it can exit, GPGCleanup forces a blank buffer to take over the screen so contents aren't visible in scrollback. However, if the buffer is modified and 'hidden' isn't set then the command will fail. Force the buffer to be hidden, so this is avoided. Signed-off-by: James McCoy <jamessan@jamessan.com>
This commit is contained in:
parent
e7be112873
commit
dda14abb3c
@ -1,5 +1,5 @@
|
||||
" Name: gnupg.vim
|
||||
" Last Change: 2016 Dec 04
|
||||
" Last Change: 2016 Dec 14
|
||||
" Maintainer: James McCoy <jamessan@jamessan.com>
|
||||
" Original Author: Markus Braun <markus.braun@krawel.de>
|
||||
" Summary: Vim plugin for transparent editing of gpg encrypted files.
|
||||
@ -420,6 +420,9 @@ endfunction
|
||||
function s:GPGCleanup()
|
||||
call s:GPGDebug(3, ">>>>>>>> Entering s:GPGCleanup()")
|
||||
|
||||
" Ensure we can hide the buffer
|
||||
setlocal bufhidden=hide
|
||||
|
||||
" wipe out screen
|
||||
new +only
|
||||
redraw!
|
||||
|
Loading…
Reference in New Issue
Block a user