mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-10 20:43:47 -05:00
MacVim GUI 7.4.1832+ supports async diffs.
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:
|
Features:
|
||||||
|
|
||||||
* Shows signs for added, modified, and removed lines.
|
* Shows signs for added, modified, and removed lines.
|
||||||
* Runs the diffs asynchronously in terminal Vim (7.4.1826+) and NeoVim.
|
* Runs the diffs asynchronously in terminal Vim (7.4.1826+), NeoVim and MacVim GUI (7.4.1832+).
|
||||||
* Ensures signs are always as up to date as possible (but without running more than necessary).
|
* Ensures signs are always as up to date as possible (but without running more than necessary).
|
||||||
* Quick jumping between blocks of changed lines ("hunks").
|
* Quick jumping between blocks of changed lines ("hunks").
|
||||||
* Stage/undo/preview individual hunks.
|
* Stage/undo/preview individual hunks.
|
||||||
|
|||||||
@@ -1,5 +1,13 @@
|
|||||||
let s:jobs = {}
|
let s:jobs = {}
|
||||||
let s:available = has('nvim') || (has('patch-7-4-1826') && !has('gui_running'))
|
|
||||||
|
" MacVim requires 88f4fe0 but that commit doesn't have a specific patch
|
||||||
|
" number. So look for the first subsequent Vim patch.
|
||||||
|
"
|
||||||
|
" gVim doesn't work properly with channels yet as far as I know.
|
||||||
|
let s:available = has('nvim') || (
|
||||||
|
\ (has('gui_macvim') && has('patch-7-4-1832')) ||
|
||||||
|
\ (has('patch-7-4-1826') && !has('gui_running'))
|
||||||
|
\ )
|
||||||
|
|
||||||
function! gitgutter#async#available()
|
function! gitgutter#async#available()
|
||||||
return s:available
|
return s:available
|
||||||
|
|||||||
Reference in New Issue
Block a user