From d1671f1fce7834b3e4371cd16fbca9f1d05abe20 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Sat, 6 Jul 2019 07:28:41 -0400 Subject: [PATCH] Fix :Gedit > --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index c401212..939b7c5 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -948,7 +948,7 @@ function! s:Expand(rev, ...) abort call s:throw('Use ' . string('!' . a:rev[1:-1] . ':%') . ' instead of ' . string(a:rev)) elseif a:rev =~# '^>[~^]\|^>@{\|^>:\d$' let file = 'HEAD' . a:rev[1:-1] . ':%' - elseif a:rev =~# '^>[^> ]' + elseif a:rev =~# '^>[> ]\@!' let file = a:rev[1:-1] . ':%' else let file = a:rev