Fix :Gedit >

This commit is contained in:
Tim Pope 2019-07-06 07:28:41 -04:00
parent 48e612601b
commit d1671f1fce

View File

@ -948,7 +948,7 @@ function! s:Expand(rev, ...) abort
call s:throw('Use ' . string('!' . a:rev[1:-1] . ':%') . ' instead of ' . string(a:rev)) call s:throw('Use ' . string('!' . a:rev[1:-1] . ':%') . ' instead of ' . string(a:rev))
elseif a:rev =~# '^>[~^]\|^>@{\|^>:\d$' elseif a:rev =~# '^>[~^]\|^>@{\|^>:\d$'
let file = 'HEAD' . a:rev[1:-1] . ':%' let file = 'HEAD' . a:rev[1:-1] . ':%'
elseif a:rev =~# '^>[^> ]' elseif a:rev =~# '^>[> ]\@!'
let file = a:rev[1:-1] . ':%' let file = a:rev[1:-1] . ':%'
else else
let file = a:rev let file = a:rev