mirror of
https://github.com/tpope/vim-fugitive.git
synced 2025-11-08 11:33:47 -05:00
Fix infinite loop when summary window contains no sections
Resolves: https://github.com/tpope/vim-fugitive/issues/1954
This commit is contained in:
@@ -4330,7 +4330,7 @@ function! s:Selection(arg1, ...) abort
|
|||||||
else
|
else
|
||||||
let last = first
|
let last = first
|
||||||
endif
|
endif
|
||||||
while getline(first) =~# '^$\|^[A-Z][a-z]'
|
while first <= line('$') && getline(first) =~# '^$\|^[A-Z][a-z]'
|
||||||
let first += 1
|
let first += 1
|
||||||
endwhile
|
endwhile
|
||||||
if first > last || &filetype !=# 'fugitive'
|
if first > last || &filetype !=# 'fugitive'
|
||||||
|
|||||||
Reference in New Issue
Block a user