Fix timer invocation

References https://github.com/tpope/vim-fugitive/issues/1329
This commit is contained in:
Tim Pope
2019-12-07 10:10:02 -05:00
parent 5d37b17e34
commit 6d4564a05e

View File

@@ -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')) |