vim-gnupg icon indicating copy to clipboard operation
vim-gnupg copied to clipboard

xterm flickers with gnupg.vim 2.6

Open ao2 opened this issue 7 years ago • 3 comments

Hi,

I updated from gnupg.vim 2.5 to 2.6 and I started to notice that xterm flickers when opening a .gpg file with vim, before showing the key prompt from gpg. The issue is a lot more visible with a full screen xterm.

I do not see the issue with other terminal emulators, so it might be a xterm+vim issue which gnupg.vim triggers; I bisected the history and I found out that the issue has been introduced in commit bd3ebdf from issue #17.

For now I can live with just commenting the term rediscovery workaround, but I wanted tor report that the workaround from commit bd3ebdf may have side effects like the one I am experiencing.

Thanks, Antonio

ao2 avatar Aug 04 '16 12:08 ao2

Yeah, I know there are side effects, but a flicker in the redraw is better than not being able to use various keys on your keyboard.

jamessan avatar Aug 04 '16 14:08 jamessan

@jamessan if there is no easy solution could we make the workaround optional, guarding it with a config variable? Even with a default to ON it'd be OK for me, so I can at least disable it via .vimrc instead of patching the plugin.

I can send a patch for that if the approach is fine with you.

Thanks, Antonio

ao2 avatar Aug 04 '16 15:08 ao2

Just for the records, by reverting the workaround from https://github.com/jamessan/vim-gnupg/commit/bd3ebdff6cb18d09c4bdbb72e28e07841c5076eb and using pinentry-tty I avoid both the issue from https://github.com/jamessan/vim-gnupg/issues/17 and the flickering from this issue.

ao2 avatar Nov 14 '16 14:11 ao2