From efd23b4440e4d86ccf5ad5a8950657965ed6fd38 Mon Sep 17 00:00:00 2001 From: Markus Braun Date: Tue, 16 Feb 2010 07:52:11 +0000 Subject: [PATCH] Patch by Erik Remmelzwaal Make gnupg.vim work better on win32 --- plugin/gnupg.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/gnupg.vim b/plugin/gnupg.vim index 25ffa0a..d542472 100644 --- a/plugin/gnupg.vim +++ b/plugin/gnupg.vim @@ -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