mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-12-08 04:54:52 +08:00
Fix error on :Gedit with no argument
This commit is contained in:
@@ -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