Ignore tty for gvim

This commit is contained in:
Markus Braun 2007-03-01 09:58:04 +00:00
parent 63dff1cd4b
commit f786031299

View File

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