mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-10 04:23:46 -05:00
Enable async diffs in gVim 7.4.1850+.
This commit is contained in:
@@ -5,7 +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 terminal Vim (7.4.1826+), NeoVim and MacVim GUI (7.4.1832+).
|
||||
* Runs the diffs asynchronously in terminal Vim/MacVim (7.4.1826+), gVim (7.4.1850+), MacVim GUI (7.4.1832+), 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,12 +1,18 @@
|
||||
let s:jobs = {}
|
||||
|
||||
" MacVim requires 88f4fe0 but that commit doesn't have a specific patch
|
||||
" number. So look for the first subsequent Vim patch.
|
||||
" Nvim has always supported async commands.
|
||||
"
|
||||
" gVim doesn't work properly with channels yet as far as I know.
|
||||
" Vim introduced async in 7.4.1826.
|
||||
"
|
||||
" gVim didn't support aync until 7.4.1850 (though I haven't been able to
|
||||
" verify this myself).
|
||||
"
|
||||
" MacVim-GUI didn't support async until 7.4.1832 (actually commit
|
||||
" 88f4fe0 but 7.4.1832 was the first subsequent patch release).
|
||||
let s:available = has('nvim') || (
|
||||
\ (has('gui_macvim') && has('patch-7-4-1832')) ||
|
||||
\ (has('patch-7-4-1826') && !has('gui_running'))
|
||||
\ (has('patch-7-4-1826') && !has('gui_running')) ||
|
||||
\ (has('patch-7-4-1850') && has('gui_running')) ||
|
||||
\ (has('patch-7-4-1832') && has('gui_macvim'))
|
||||
\ )
|
||||
|
||||
function! gitgutter#async#available()
|
||||
|
||||
Reference in New Issue
Block a user