Fix Trailing Characters, Invalid range error for :<count>Gstatus

Correct the position of newly added keepalt option from
'botright <count>keepalt split' to 'botright keepalt <count>split'
This commit is contained in:
Appu Joseph
2020-02-18 10:07:37 -05:00
committed by Tim Pope
parent 9bbbb65888
commit 81ca98d7e8

View File

@@ -2570,7 +2570,7 @@ function! s:StatusCommand(line1, line2, range, count, bang, mods, reg, arg, args
elseif a:bang elseif a:bang
return mods . 'pedit' . arg . '|wincmd P' return mods . 'pedit' . arg . '|wincmd P'
else else
return mods . (a:count > 0 ? a:count : '') . 'keepalt split' . arg return mods . 'keepalt ' . (a:count > 0 ? a:count : '') . 'split' . arg
endif endif
catch /^fugitive:/ catch /^fugitive:/
return 'echoerr ' . string(v:exception) return 'echoerr ' . string(v:exception)