You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The trouble with window variables is that we only know the buffer number, not the window number. This is why the slightly awkward s:vimdiff() function exists.
I'm happy to leave the check for pumvisible() in place because I don't think we want gitgutter to run while the user is in the middle of a completion.
Gitgutter could additionally check whether the buffer it is processing is shown in a preview window – but if the preview window is showing a git-tracked file then we would probably want to see the diff signs if any.
I'll close this for now but happy to discuss further if you like.
I've wondered about
pumvisible()
being used ingitgutter#utility#is_active
(vim-gitgutter/autoload/gitgutter/utility.vim
Line 47 in 1a6be02
It was added in f05fda9 to fix #310.
I think a better fix would be to check for the local
previewwindow
setting or something similar.I have not investigated yet, but just started using vim-gitgutter and wanted to leave this here for now.
The text was updated successfully, but these errors were encountered: