Fix extra bang in diff maps
This commit is contained in:
parent
faa895239b
commit
6cc52a1aab
@ -1828,12 +1828,12 @@ function! fugitive#BufReadStatus() abort
|
|||||||
call s:Map('x', "=", ":<C-U>execute <SID>StageInline('toggle',line(\"'<\"),line(\"'>\")-line(\"'<\")+1)<CR>", '<silent>')
|
call s:Map('x', "=", ":<C-U>execute <SID>StageInline('toggle',line(\"'<\"),line(\"'>\")-line(\"'<\")+1)<CR>", '<silent>')
|
||||||
call s:Map('x', "<", ":<C-U>execute <SID>StageInline('hide', line(\"'<\"),line(\"'>\")-line(\"'<\")+1)<CR>", '<silent>')
|
call s:Map('x', "<", ":<C-U>execute <SID>StageInline('hide', line(\"'<\"),line(\"'>\")-line(\"'<\")+1)<CR>", '<silent>')
|
||||||
call s:Map('x', ">", ":<C-U>execute <SID>StageInline('show', line(\"'<\"),line(\"'>\")-line(\"'<\")+1)<CR>", '<silent>')
|
call s:Map('x', ">", ":<C-U>execute <SID>StageInline('show', line(\"'<\"),line(\"'>\")-line(\"'<\")+1)<CR>", '<silent>')
|
||||||
call s:Map('n', 'D', ":<C-U>execute <SID>StageDiff('Gdiffsplit!')<Bar>redraw<Bar>echohl WarningMsg<Bar> echo ':Gstatus D is deprecated in favor of dd'<Bar>echohl NONE<CR>", '<silent>')
|
call s:Map('n', 'D', ":<C-U>execute <SID>StageDiff('Gdiffsplit')<Bar>redraw<Bar>echohl WarningMsg<Bar> echo ':Gstatus D is deprecated in favor of dd'<Bar>echohl NONE<CR>", '<silent>')
|
||||||
call s:Map('n', 'dd', ":<C-U>execute <SID>StageDiff('Gdiffsplit!')<CR>", '<silent>')
|
call s:Map('n', 'dd', ":<C-U>execute <SID>StageDiff('Gdiffsplit')<CR>", '<silent>')
|
||||||
call s:Map('n', 'dh', ":<C-U>execute <SID>StageDiff('Ghdiffsplit!')<CR>", '<silent>')
|
call s:Map('n', 'dh', ":<C-U>execute <SID>StageDiff('Ghdiffsplit')<CR>", '<silent>')
|
||||||
call s:Map('n', 'ds', ":<C-U>execute <SID>StageDiff('Ghdiffsplit!')<CR>", '<silent>')
|
call s:Map('n', 'ds', ":<C-U>execute <SID>StageDiff('Ghdiffsplit')<CR>", '<silent>')
|
||||||
call s:Map('n', 'dp', ":<C-U>execute <SID>StageDiffEdit()<CR>", '<silent>')
|
call s:Map('n', 'dp', ":<C-U>execute <SID>StageDiffEdit()<CR>", '<silent>')
|
||||||
call s:Map('n', 'dv', ":<C-U>execute <SID>StageDiff('Gvdiffsplit!')<CR>", '<silent>')
|
call s:Map('n', 'dv', ":<C-U>execute <SID>StageDiff('Gvdiffsplit')<CR>", '<silent>')
|
||||||
call s:Map('n', 'd?', ":<C-U>help fugitive_d<CR>", '<silent>')
|
call s:Map('n', 'd?', ":<C-U>help fugitive_d<CR>", '<silent>')
|
||||||
call s:Map('n', 'P', ":<C-U>execute <SID>StagePatch(line('.'),line('.')+v:count1-1)<CR>", '<silent>')
|
call s:Map('n', 'P', ":<C-U>execute <SID>StagePatch(line('.'),line('.')+v:count1-1)<CR>", '<silent>')
|
||||||
call s:Map('x', 'P', ":<C-U>execute <SID>StagePatch(line(\"'<\"),line(\"'>\"))<CR>", '<silent>')
|
call s:Map('x', 'P', ":<C-U>execute <SID>StagePatch(line(\"'<\"),line(\"'>\"))<CR>", '<silent>')
|
||||||
@ -2927,10 +2927,10 @@ function! s:StageDiff(diff) abort
|
|||||||
return 'Git! diff --no-ext-diff'
|
return 'Git! diff --no-ext-diff'
|
||||||
elseif len(info.paths) > 1
|
elseif len(info.paths) > 1
|
||||||
execute 'Gedit' . prefix s:fnameescape(':0:' . info.paths[0])
|
execute 'Gedit' . prefix s:fnameescape(':0:' . info.paths[0])
|
||||||
return a:diff.'! HEAD:'.s:fnameescape(info.paths[1])
|
return a:diff . '! HEAD:'.s:fnameescape(info.paths[1])
|
||||||
elseif info.section ==# 'Staged' && info.sigil ==# '-'
|
elseif info.section ==# 'Staged' && info.sigil ==# '-'
|
||||||
execute 'Gedit' prefix s:fnameescape(':0:'.info.paths[0])
|
execute 'Gedit' prefix s:fnameescape(':0:'.info.paths[0])
|
||||||
return a:diff.'! :0:%'
|
return a:diff . '! :0:%'
|
||||||
elseif info.section ==# 'Staged'
|
elseif info.section ==# 'Staged'
|
||||||
execute 'Gedit' prefix s:fnameescape(':0:'.info.paths[0])
|
execute 'Gedit' prefix s:fnameescape(':0:'.info.paths[0])
|
||||||
return a:diff . '! @:%'
|
return a:diff . '! @:%'
|
||||||
|
Loading…
Reference in New Issue
Block a user