mirror of
https://github.com/Ascyii/vim-gnupg.git
synced 2026-01-01 06:14:24 -05:00
Respect the 'verbose' option
This allows for easier on-the-fly debug (e.g., ":verbose w") and also makes it easy to leverage 'verbosefile'. Signed-off-by: James McCoy <jamessan@jamessan.com>
This commit is contained in:
@@ -1206,7 +1206,7 @@ endfunction
|
||||
" only define function if GPGDebugLevel set at all
|
||||
"
|
||||
function s:GPGDebug(level, text)
|
||||
if exists("g:GPGDebugLevel") && g:GPGDebugLevel >= a:level
|
||||
if get(g:, 'GPGDebugLevel', 0) >= a:level || &verbose >= a:level
|
||||
if exists("g:GPGDebugLog")
|
||||
execute "redir >> " . g:GPGDebugLog
|
||||
silent echom "GnuPG: " . a:text
|
||||
|
||||
Reference in New Issue
Block a user