mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-19 09:03:44 -05:00
Merge 4767a6caa8 into 174230d6a7
This commit is contained in:
@@ -3791,14 +3791,17 @@ function! fugitive#Command(line1, line2, range, bang, mods, arg, ...) abort
|
|||||||
exe s:DirCheck(dir)
|
exe s:DirCheck(dir)
|
||||||
endif
|
endif
|
||||||
let config = copy(fugitive#Config(dir))
|
let config = copy(fugitive#Config(dir))
|
||||||
let curwin = a:arg =~# '^++curwin\>' || !a:line2
|
let curwin = !a:line2
|
||||||
let [args, after] = s:SplitExpandChain(substitute(a:arg, '^++curwin\>\s*', '', ''), s:Tree(dir))
|
let [args, after] = s:SplitExpandChain(a:arg, s:Tree(dir))
|
||||||
let flags = []
|
let flags = []
|
||||||
let pager = -1
|
let pager = -1
|
||||||
let explicit_pathspec_option = 0
|
let explicit_pathspec_option = 0
|
||||||
let did_expand_alias = 0
|
let did_expand_alias = 0
|
||||||
while len(args)
|
while len(args)
|
||||||
if args[0] ==# '-c' && len(args) > 1
|
if args[0] ==# '++curwin'
|
||||||
|
let curwin = curwin || v:true
|
||||||
|
call remove(args, 0)
|
||||||
|
elseif args[0] ==# '-c' && len(args) > 1
|
||||||
call extend(flags, remove(args, 0, 1))
|
call extend(flags, remove(args, 0, 1))
|
||||||
elseif args[0] =~# '^-p$\|^--paginate$'
|
elseif args[0] =~# '^-p$\|^--paginate$'
|
||||||
let pager = 2
|
let pager = 2
|
||||||
|
|||||||
Reference in New Issue
Block a user