diff --git a/README.mkd b/README.mkd index 79bbcb5..aa1f47a 100644 --- a/README.mkd +++ b/README.mkd @@ -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. diff --git a/autoload/gitgutter/async.vim b/autoload/gitgutter/async.vim index d08160e..78e725f 100644 --- a/autoload/gitgutter/async.vim +++ b/autoload/gitgutter/async.vim @@ -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()