mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-12 21:33:53 -05:00
Fix timer invocation
References https://github.com/tpope/vim-fugitive/issues/1329
This commit is contained in:
@@ -3758,7 +3758,7 @@ function! s:PullSubcommand(line1, line2, range, bang, mods, args) abort
|
||||
return s:MergeRebase('pull', a:bang, a:mods, a:args)
|
||||
endfunction
|
||||
|
||||
function! s:RebaseContinue(arg) abort
|
||||
function! s:RebaseContinue(arg, ...) abort
|
||||
let [dir, edit_todo] = a:arg
|
||||
exe s:MergeRebase('rebase', 0, '', [edit_todo && getfsize(fugitive#Find('.git/rebase-merge/git-rebase-todo', dir)) <= 0 ? '--abort' : '--continue'], dir)
|
||||
endfunction
|
||||
@@ -3774,7 +3774,7 @@ augroup fugitive_merge
|
||||
\ endif
|
||||
autocmd BufEnter * nested
|
||||
\ if exists('s:rebase_continue') |
|
||||
\ if has('timer') |
|
||||
\ if has('timers') |
|
||||
\ call timer_start(0, function('s:RebaseContinue', [remove(s:, 'rebase_continue')])) |
|
||||
\ else |
|
||||
\ call s:RebaseContinue(remove(s:, 'rebase_continue')) |
|
||||
|
||||
Reference in New Issue
Block a user