Closed airblade closed 3 years ago
diff --git i/autoload/gitstatus/listener.vim w/autoload/gitstatus/listener.vim index 13e9d1e..41b266a 100644 --- i/autoload/gitstatus/listener.vim +++ w/autoload/gitstatus/listener.vim @@ -97,8 +97,8 @@ function! s:Listener.TryUpdateNERDTreeUI() abort call b:NERDTree.root.refreshFlags() call NERDTreeRender() finally - exec l:altwinnr . 'wincmd w' - exec l:winnr . 'wincmd w' + noautocmd exec l:altwinnr . 'wincmd w' + noautocmd exec l:winnr . 'wincmd w' endtry endfunction
Currently when the cursor makes those two window jumps, it triggers BufEnter autocmds. Presumably we do not want to do that.
BufEnter
I noticed this while investigating an issue with the autocmds triggered by these BufEnter events.
Thanks, could you open a PR?
Please see #174.
Merged. Thanks for your contribution.
Description
Currently when the cursor makes those two window jumps, it triggers
BufEnter
autocmds. Presumably we do not want to do that.I noticed this while investigating an issue with the autocmds triggered by these
BufEnter
events.