From 671b84626e7155413da13a2c7bdb392d5856c7e5 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Fri, 6 Feb 2015 09:53:09 -0500 Subject: [PATCH] Emit TermChanged when resetting &term MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Resetting &term can affect various settings which are terminal dependent (e.g., escape sequences described at “:help :set-termcap”). Emitting TermChanged allows people to re-set these options so they don't lose functionality (c.f. jamessan/vim-gnupg#28). Signed-off-by: James McCoy --- plugin/gnupg.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/gnupg.vim b/plugin/gnupg.vim index 986d8d1..dba0fec 100644 --- a/plugin/gnupg.vim +++ b/plugin/gnupg.vim @@ -1,5 +1,5 @@ " Name: gnupg.vim -" Last Change: 2015 Jan 01 +" Last Change: 2015 Feb 06 " Maintainer: James McCoy " Original Author: Markus Braun " Summary: Vim plugin for transparent editing of gpg encrypted files. @@ -1290,6 +1290,7 @@ function s:GPGPostCmd() " pinentry-curses by forcing Vim to re-detect and setup its terminal " settings let &term = &term + doautocmd TermChanged endfunction " Function: s:GPGSystem(dict) {{{2