mirror of
https://github.com/Ascyii/vim-gnupg.git
synced 2026-01-01 06:14:24 -05:00
Print debug message only after debug level had been defined.
This commit is contained in:
@@ -95,9 +95,6 @@ highlight default link GPGHighlightUnknownRecipient ErrorMsg
|
|||||||
" initialize the plugin
|
" initialize the plugin
|
||||||
"
|
"
|
||||||
fun s:GPGInit()
|
fun s:GPGInit()
|
||||||
" print version
|
|
||||||
call s:GPGDebug(1, "gnupg.vim ". g:loaded_gnupg)
|
|
||||||
|
|
||||||
" first make sure nothing is written to ~/.viminfo while editing
|
" first make sure nothing is written to ~/.viminfo while editing
|
||||||
" an encrypted file.
|
" an encrypted file.
|
||||||
set viminfo=
|
set viminfo=
|
||||||
@@ -125,6 +122,9 @@ fun s:GPGInit()
|
|||||||
let g:GPGDebugLevel = 0
|
let g:GPGDebugLevel = 0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
" print version
|
||||||
|
call s:GPGDebug(1, "gnupg.vim ". g:loaded_gnupg)
|
||||||
|
|
||||||
" determine if gnupg can use the gpg-agent
|
" determine if gnupg can use the gpg-agent
|
||||||
if (exists("$GPG_AGENT_INFO") && g:GPGUseAgent == 1)
|
if (exists("$GPG_AGENT_INFO") && g:GPGUseAgent == 1)
|
||||||
if (!exists("$GPG_TTY"))
|
if (!exists("$GPG_TTY"))
|
||||||
|
|||||||
Reference in New Issue
Block a user