From 0f20c35b626b0b5e80428099a3a4cd9469683f86 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Tue, 25 Jun 2019 16:28:36 -0400 Subject: [PATCH] Fix error on :Gedit with no argument --- autoload/fugitive.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index df3881b..916201b 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -857,7 +857,7 @@ function! s:ExpandVar(other, var, flags, esc) abort endfunction function! s:Expand(rev) abort - if a:rev =~# '^:0' + if a:rev =~# '^:0$' call s:throw('Use ' . string(':%') . ' instead of ' . string(a:rev)) elseif a:rev =~# '^:[1-3]$' call s:throw('Use ' . string(a:rev . ':%') . ' instead of ' . string(a:rev))