File tree Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Expand file tree Collapse file tree 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ function! sy#start(...) abort
10
10
return
11
11
endif
12
12
13
+ if g: signify_detecting > 50
14
+ call sy#verbose (' Too many detection jobs running, deferring detection' )
15
+ return
16
+ endif
17
+
13
18
let bufnr = a: 0 && has_key (a: 1 , ' bufnr' ) ? a: 1 .bufnr : bufnr (' ' )
14
19
let sy = getbufvar (bufnr , ' sy' )
15
20
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ function! sy#repo#detect(bufnr) abort
7
7
let sy = getbufvar (a: bufnr , ' sy' )
8
8
for vcs in s: vcs_list
9
9
let sy .detecting += 1
10
+ let g: signify_detecting += 1
10
11
call sy#repo#get_diff (a: bufnr , vcs, function (' sy#sign#set_signs' ))
11
12
endfor
12
13
endfunction
@@ -130,6 +131,7 @@ function! s:handle_diff(options, exitval) abort
130
131
call sy#verbose (printf (' Signs already got updated by %s.' , sy .updated_by), a: options .vcs)
131
132
return
132
133
elseif empty (sy .vcs)
134
+ let g: signify_detecting -= 1
133
135
let sy .detecting -= 1
134
136
endif
135
137
Original file line number Diff line number Diff line change 8
8
9
9
let g: loaded_signify = 1
10
10
let g: signify_locked = 0
11
+ let g: signify_detecting = 0
11
12
12
13
" Commands {{{1
13
14
command ! -nargs =0 - bar SignifyList call sy#debug#list_active_buffers ()
You can’t perform that action at this time.
0 commit comments