mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-15 23:03:51 -05:00
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:
@@ -2570,7 +2570,7 @@ function! s:StatusCommand(line1, line2, range, count, bang, mods, reg, arg, args
|
||||
elseif a:bang
|
||||
return mods . 'pedit' . arg . '|wincmd P'
|
||||
else
|
||||
return mods . (a:count > 0 ? a:count : '') . 'keepalt split' . arg
|
||||
return mods . 'keepalt ' . (a:count > 0 ? a:count : '') . 'split' . arg
|
||||
endif
|
||||
catch /^fugitive:/
|
||||
return 'echoerr ' . string(v:exception)
|
||||
|
||||
Reference in New Issue
Block a user