From f44845e4408aae03e018e98afb7fbf0c2ee87dd5 Mon Sep 17 00:00:00 2001 From: Jonathan Arnett Date: Fri, 10 Feb 2017 12:35:36 -0500 Subject: [PATCH] Fix for empty buffer :Git command in Neovim (#785) Detects whether the current buffer is empty; opens a new empty tab if so, a new tab of the same buffer if not. --- plugin/fugitive.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugin/fugitive.vim b/plugin/fugitive.vim index 8d02b23..1185ff1 100644 --- a/plugin/fugitive.vim +++ b/plugin/fugitive.vim @@ -700,7 +700,11 @@ function! s:Git(bang, args) abort let args = matchstr(a:args,'\v\C.{-}%($|\\@