mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-10 20:43:47 -05:00
@@ -127,7 +127,7 @@ function! gitgutter#diff#run_diff(realtime, preserve_full_diff)
|
||||
call setbufvar(bufnr, 'gitgutter_tracked', 1)
|
||||
endif
|
||||
|
||||
if has('nvim') && !a:preserve_full_diff
|
||||
if g:gitgutter_async && has('nvim') && !a:preserve_full_diff
|
||||
let cmd = gitgutter#utility#command_in_directory_of_file(cmd)
|
||||
" Note that when `cmd` doesn't produce any output, i.e. the diff is empty,
|
||||
" the `stdout` event is not fired on the job handler. Therefore we keep
|
||||
|
||||
Reference in New Issue
Block a user