motiejus/dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone https://git.jakstys.lt/motiejus/dotfiles.git
Log | Tree | Refs | README | LICENSE

commit f5a94cbc811aee12ad99cc82ee8092406aa94faf (tree)
parent dc413818a63fa950c2ebb2f7b34c606d14a303c8
Author: Tim Pope <code@tpope.net>
Date:   Mon, 16 Sep 2019 17:25:47 -0400

Reload status after Vim :terminal command

Closes https://github.com/tpope/vim-fugitive/issues/1323

Diffstat:
Mautoload/fugitive.vim | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim @@ -2410,7 +2410,10 @@ augroup fugitive_status autocmd! autocmd BufWritePost * call fugitive#ReloadStatus(-1, 0) autocmd ShellCmdPost * nested call fugitive#ReloadStatus() - autocmd BufDelete term://* nested call fugitive#ReloadStatus() + autocmd BufDelete * nested + \ if getbufvar(+expand('<abuf>'), 'buftype') == 'terminal' | + \ call fugitive#ReloadStatus() | + \ endif if !has('win32') autocmd FocusGained * call fugitive#ReloadStatus(-2, 0) endif