mirror of
https://github.com/Ascyii/vim-gnupg.git
synced 2026-01-01 06:14:24 -05:00
Restore the :silent command when encrypting the buffer
This was lost in the refactor of external command handling, commit
7d102c843, and was causing an unnecessary "Press ENTER …" prompt to be
emitted whenever the buffer was written out.
Signed-off-by: James McCoy <vega.james@gmail.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
" Name: gnupg.vim
|
" Name: gnupg.vim
|
||||||
" Last Change: 2013 Apr 23
|
" Last Change: 2013 Jun 14
|
||||||
" Maintainer: James McCoy <vega.james@gmail.com>
|
" Maintainer: James McCoy <vega.james@gmail.com>
|
||||||
" Original Author: Markus Braun <markus.braun@krawel.de>
|
" Original Author: Markus Braun <markus.braun@krawel.de>
|
||||||
" Summary: Vim plugin for transparent editing of gpg encrypted files.
|
" Summary: Vim plugin for transparent editing of gpg encrypted files.
|
||||||
@@ -637,7 +637,7 @@ function s:GPGEncrypt()
|
|||||||
let cmd = { 'level': 1, 'ex': "'[,']w !" }
|
let cmd = { 'level': 1, 'ex': "'[,']w !" }
|
||||||
let cmd.args = '--quiet --no-encrypt-to ' . options
|
let cmd.args = '--quiet --no-encrypt-to ' . options
|
||||||
let cmd.redirect = '>' . shellescape(destfile, 1)
|
let cmd.redirect = '>' . shellescape(destfile, 1)
|
||||||
call s:GPGExecute(cmd)
|
silent call s:GPGExecute(cmd)
|
||||||
|
|
||||||
" restore encoding
|
" restore encoding
|
||||||
if (s:GPGEncoding != "")
|
if (s:GPGEncoding != "")
|
||||||
|
|||||||
Reference in New Issue
Block a user