Print debug message only after debug level had been defined.

This commit is contained in:
Markus Braun
2008-01-23 09:00:51 +00:00
parent 874bd187f2
commit bfdc09a732

View File

@@ -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"))