mirror of
https://github.com/Ascyii/vim-gnupg.git
synced 2026-01-01 06:14:24 -05:00
Ignore tty for gvim
This commit is contained in:
@@ -134,6 +134,13 @@ fun s:GPGInit()
|
|||||||
let s:GPGCommand="gpg --no-use-agent"
|
let s:GPGCommand="gpg --no-use-agent"
|
||||||
endif
|
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
|
" setup shell environment for unix and windows
|
||||||
let s:shellredirsave=&shellredir
|
let s:shellredirsave=&shellredir
|
||||||
let s:shellsave=&shell
|
let s:shellsave=&shell
|
||||||
|
|||||||
Reference in New Issue
Block a user