mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 11:33:48 -05:00
Fix problem affecting neovim's omnicompletion.
Before this change, neovim's omnicompletion would always insert the first completion option without allowing the user to choose any other. Thanks to @lvht, @chemzqm, and @Shougo for help with this. Closes #310, #311.
This commit is contained in:
@@ -24,7 +24,7 @@ endfunction
|
||||
" Returns truthy when the buffer's file should be processed; and falsey when it shouldn't.
|
||||
" This function does not and should not make any system calls.
|
||||
function! gitgutter#utility#is_active()
|
||||
return g:gitgutter_enabled && gitgutter#utility#exists_file() && gitgutter#utility#not_git_dir() && !gitgutter#utility#help_file()
|
||||
return g:gitgutter_enabled && !pumvisible() && gitgutter#utility#exists_file() && gitgutter#utility#not_git_dir() && !gitgutter#utility#help_file()
|
||||
endfunction
|
||||
|
||||
function! gitgutter#utility#not_git_dir()
|
||||
|
||||
Reference in New Issue
Block a user