From f786031299b48c1c015cd29b1436b72e655ca419 Mon Sep 17 00:00:00 2001 From: Markus Braun Date: Thu, 1 Mar 2007 09:58:04 +0000 Subject: [PATCH] Ignore tty for gvim --- plugin/gnupg.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugin/gnupg.vim b/plugin/gnupg.vim index 785e8bf..7814d3b 100644 --- a/plugin/gnupg.vim +++ b/plugin/gnupg.vim @@ -134,6 +134,13 @@ fun s:GPGInit() let s:GPGCommand="gpg --no-use-agent" endif + " don't use tty in gvim + " FIXME find a better way to avoid an error. + " with this solution only --use-agent will work + if has("gui_running") + let s:GPGCommand=s:GPGCommand . " --no-tty" + endif + " setup shell environment for unix and windows let s:shellredirsave=&shellredir let s:shellsave=&shell