mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-14 14:23:51 -05:00
Fix possible infinite loop
This commit is contained in:
@@ -3515,9 +3515,10 @@ if !exists('s:resume_queue')
|
||||
endif
|
||||
function! fugitive#Resume() abort
|
||||
while len(s:resume_queue)
|
||||
if s:resume_queue[0][2] isnot# ''
|
||||
let enqueued = remove(s:resume_queue, 0)
|
||||
if enqueued[2] isnot# ''
|
||||
try
|
||||
call call('s:RunWait', remove(s:resume_queue, 0))
|
||||
call call('s:RunWait', enqueued)
|
||||
endtry
|
||||
endif
|
||||
endwhile
|
||||
|
||||
Reference in New Issue
Block a user