mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-15 06:43:51 -05:00
Act globally when invoking inline diff maps on Head: line
Closes https://github.com/tpope/vim-fugitive/issues/1563
This commit is contained in:
@@ -3420,7 +3420,9 @@ function! s:StageInline(mode, ...) abort
|
|||||||
endif
|
endif
|
||||||
let lnum1 = a:0 ? a:1 : line('.')
|
let lnum1 = a:0 ? a:1 : line('.')
|
||||||
let lnum = lnum1 + 1
|
let lnum = lnum1 + 1
|
||||||
if a:0 > 1 && a:2 == 0
|
if a:0 > 1 && a:2 == 0 && lnum1 == 1
|
||||||
|
let lnum = line('$') - 1
|
||||||
|
elseif a:0 > 1 && a:2 == 0
|
||||||
let info = s:StageInfo(lnum - 1)
|
let info = s:StageInfo(lnum - 1)
|
||||||
if empty(info.paths) && len(info.section)
|
if empty(info.paths) && len(info.section)
|
||||||
while len(getline(lnum))
|
while len(getline(lnum))
|
||||||
|
|||||||
Reference in New Issue
Block a user