Patch by Erik Remmelzwaal

Make gnupg.vim work better on win32
This commit is contained in:
Markus Braun 2010-02-16 07:52:11 +00:00
parent 9e7c686de5
commit efd23b4440

View File

@ -240,10 +240,10 @@ function s:GPGInit()
let s:GPGCommand = g:GPGExecutable . " --no-use-agent"
endif
" don't use tty in gvim
" don't use tty in gvim except for windows: we get their a tty for free.
" FIXME find a better way to avoid an error.
" with this solution only --use-agent will work
if (has("gui_running"))
if (has("gui_running") && !has("gui_win32"))
let s:GPGCommand = s:GPGCommand . " --no-tty"
endif