mirror of
https://github.com/tpope/vim-fugitive.git
synced 2026-10-09 23:05:57 +08:00
Fix error on :Gedit with no argument
This commit is contained in:
1 parent
fc529da8ae
commit
0f20c35b62
1 file changed
+1
-1
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user