mirror of
https://github.com/Ascyii/vim-gnupg.git
synced 2026-01-01 06:14:24 -05:00
Only re-set &term when not in a GUI
The workaround is only needed to get the containing terminal and Vim back in sync. When running in a gvim, this clearly is not needed. Closes jamessan/vim-gnupg#126 Signed-off-by: James McCoy <jamessan@jamessan.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
" Name: autoload/gnupg.vim
|
" Name: autoload/gnupg.vim
|
||||||
" Last Change: 2020 Nov 11
|
" Last Change: 2022 May 18
|
||||||
" Maintainer: James McCoy <jamessan@jamessan.com>
|
" Maintainer: James McCoy <jamessan@jamessan.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.
|
||||||
@@ -1153,8 +1153,10 @@ function s:GPGPostCmd()
|
|||||||
" Workaround a bug in the interaction between console vim and
|
" Workaround a bug in the interaction between console vim and
|
||||||
" pinentry-curses by forcing Vim to re-detect and setup its terminal
|
" pinentry-curses by forcing Vim to re-detect and setup its terminal
|
||||||
" settings
|
" settings
|
||||||
let &term = &term
|
if !has('gui_running')
|
||||||
silent doautocmd TermChanged
|
let &term = &term
|
||||||
|
silent doautocmd TermChanged
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
" Function: s:GPGSystem(dict) {{{2
|
" Function: s:GPGSystem(dict) {{{2
|
||||||
|
|||||||
Reference in New Issue
Block a user