Fix error on :Gedit with no argument

This commit is contained in:
Tim Pope 2019-06-25 16:28:36 -04:00
parent fc529da8ae
commit 0f20c35b62

View File

@ -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))