mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-12-06 12:14:31 +08:00
Compare commits
3 Commits
3aded68f08
...
5c77b7aab8
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c77b7aab8 | ||
|
|
b068eaf1e6 | ||
|
|
4767a6caa8 |
@@ -3791,14 +3791,17 @@ function! fugitive#Command(line1, line2, range, bang, mods, arg, ...) abort
|
||||
exe s:DirCheck(dir)
|
||||
endif
|
||||
let config = copy(fugitive#Config(dir))
|
||||
let curwin = a:arg =~# '^++curwin\>' || !a:line2
|
||||
let [args, after] = s:SplitExpandChain(substitute(a:arg, '^++curwin\>\s*', '', ''), s:Tree(dir))
|
||||
let curwin = !a:line2
|
||||
let [args, after] = s:SplitExpandChain(a:arg, s:Tree(dir))
|
||||
let flags = []
|
||||
let pager = -1
|
||||
let explicit_pathspec_option = 0
|
||||
let did_expand_alias = 0
|
||||
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))
|
||||
elseif args[0] =~# '^-p$\|^--paginate$'
|
||||
let pager = 2
|
||||
@@ -8030,8 +8033,8 @@ function! fugitive#MapJumps(...) abort
|
||||
call s:MapMotion(']]', 'exe <SID>NextSection(v:count1)')
|
||||
call s:MapMotion('[]', 'exe <SID>PreviousSectionEnd(v:count1)')
|
||||
call s:MapMotion('][', 'exe <SID>NextSectionEnd(v:count1)')
|
||||
call s:Map('nxo', '*', '<SID>PatchSearchExpr(0)', '<expr>')
|
||||
call s:Map('nxo', '#', '<SID>PatchSearchExpr(1)', '<expr>')
|
||||
call s:Map('no', '*', '<SID>PatchSearchExpr(0)', '<expr>')
|
||||
call s:Map('no', '#', '<SID>PatchSearchExpr(1)', '<expr>')
|
||||
endif
|
||||
call s:Map('n', 'S', ':<C-U>echoerr "Use gO"<CR>', '<silent><unique>')
|
||||
call s:Map('n', 'dq', ":<C-U>call fugitive#DiffClose()<CR>", '<silent>')
|
||||
|
||||
Reference in New Issue
Block a user