mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-13 22:03:51 -05:00
Eliminate s:StageReloadSeek()
This commit is contained in:
@@ -2109,11 +2109,6 @@ function! s:StagePrevious(count) abort
|
|||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
function! s:StageReloadSeek(target,lnum1,lnum2) abort
|
|
||||||
exe s:ReloadStatus(a:lnum1)
|
|
||||||
return ''
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
function! s:StageInline(mode, ...) abort
|
function! s:StageInline(mode, ...) abort
|
||||||
let lnum1 = a:0 ? a:1 : line('.')
|
let lnum1 = a:0 ? a:1 : line('.')
|
||||||
let lnum = lnum1 + 1
|
let lnum = lnum1 + 1
|
||||||
@@ -2221,16 +2216,7 @@ function! s:StageDiffEdit() abort
|
|||||||
return 'Git! diff --no-ext-diff --cached '.s:shellesc(arg)
|
return 'Git! diff --no-ext-diff --cached '.s:shellesc(arg)
|
||||||
elseif info.status ==# '?'
|
elseif info.status ==# '?'
|
||||||
call s:TreeChomp('add', '--intent-to-add', './' . arg)
|
call s:TreeChomp('add', '--intent-to-add', './' . arg)
|
||||||
if arg ==# '.'
|
return s:ReloadStatus()
|
||||||
silent! edit!
|
|
||||||
1
|
|
||||||
if !search('^Unstaged','W')
|
|
||||||
call search('^Staged','W')
|
|
||||||
endif
|
|
||||||
else
|
|
||||||
call s:StageReloadSeek([info.filename, 'Staged'], line('.'), line('.'))
|
|
||||||
endif
|
|
||||||
return ''
|
|
||||||
else
|
else
|
||||||
return 'Git! diff --no-ext-diff '.s:shellesc(arg)
|
return 'Git! diff --no-ext-diff '.s:shellesc(arg)
|
||||||
endif
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user