mirror of
https://github.com/Ascyii/vim-gnupg.git
synced 2026-01-01 14:24:25 -05:00
Don't wipeout the current buffer if FileReadCmd failed
Signed-off-by: James McCoy <vega.james@gmail.com>
This commit is contained in:
@@ -456,7 +456,11 @@ function s:GPGDecrypt(bufread)
|
|||||||
echohl GPGError
|
echohl GPGError
|
||||||
let blackhole = input("Message could not be decrypted! (Press ENTER)")
|
let blackhole = input("Message could not be decrypted! (Press ENTER)")
|
||||||
echohl None
|
echohl None
|
||||||
silent bwipeout!
|
" Only wipeout the buffer if we were creating one to start with.
|
||||||
|
" FileReadCmd just reads the content into the existing buffer
|
||||||
|
if a:bufread
|
||||||
|
silent bwipeout!
|
||||||
|
endif
|
||||||
call s:GPGDebug(3, "<<<<<<<< Leaving s:GPGDecrypt()")
|
call s:GPGDebug(3, "<<<<<<<< Leaving s:GPGDecrypt()")
|
||||||
return
|
return
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user