mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-08 19:43:47 -05:00
Restrict async diffing in Vim to terminal Vim.
MacVim in GUI mode and gVim don't process the callbacks reliably (or at all) yet.
This commit is contained in:
@@ -5,8 +5,7 @@ A Vim plugin which shows a git diff in the 'gutter' (sign column). It shows whe
|
||||
Features:
|
||||
|
||||
* Shows signs for added, modified, and removed lines.
|
||||
* Runs the diffs asynchronously in Vim (7.4.1826+) and NeoVim.
|
||||
- MacVim in GUI mode runs synchronously because it doesn't support Vim's async operations yet ([macvim#272](https://github.com/macvim-dev/macvim/issues/272)).
|
||||
* Runs the diffs asynchronously in terminal Vim (7.4.1826+) and NeoVim.
|
||||
* Ensures signs are always as up to date as possible (but without running more than necessary).
|
||||
* Quick jumping between blocks of changed lines ("hunks").
|
||||
* Stage/undo/preview individual hunks.
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
let s:jobs = {}
|
||||
" Async broken on MacVim in GUI mode:
|
||||
" https://github.com/macvim-dev/macvim/issues/272
|
||||
let s:available = has('nvim') || (has('patch-7-4-1826') && !(has('gui_macvim') && has('gui_running')))
|
||||
let s:available = has('nvim') || (has('patch-7-4-1826') && !has('gui_running'))
|
||||
|
||||
function! gitgutter#async#available()
|
||||
return s:available
|
||||
|
||||
Reference in New Issue
Block a user