mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 06:13:51 -05: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
|
endfunction
|
||||||
|
|
||||||
function! s:Expand(rev) abort
|
function! s:Expand(rev) abort
|
||||||
if a:rev =~# '^:0'
|
if a:rev =~# '^:0$'
|
||||||
call s:throw('Use ' . string(':%') . ' instead of ' . string(a:rev))
|
call s:throw('Use ' . string(':%') . ' instead of ' . string(a:rev))
|
||||||
elseif a:rev =~# '^:[1-3]$'
|
elseif a:rev =~# '^:[1-3]$'
|
||||||
call s:throw('Use ' . string(a:rev . ':%') . ' instead of ' . string(a:rev))
|
call s:throw('Use ' . string(a:rev . ':%') . ' instead of ' . string(a:rev))
|
||||||
|
|||||||
Reference in New Issue
Block a user