From 882073f4b5a4621c880120141956f44c90e92868 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Thu, 12 May 2016 10:22:43 +0100 Subject: [PATCH] Restrict async diffing in Vim to terminal Vim. MacVim in GUI mode and gVim don't process the callbacks reliably (or at all) yet. --- README.mkd | 3 +-- autoload/gitgutter/async.vim | 4 +--- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/README.mkd b/README.mkd index 1801d39..5e92f23 100644 --- a/README.mkd +++ b/README.mkd @@ -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. diff --git a/autoload/gitgutter/async.vim b/autoload/gitgutter/async.vim index 989dc2f..1e4f932 100644 --- a/autoload/gitgutter/async.vim +++ b/autoload/gitgutter/async.vim @@ -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