Commit 701d22f
committed
Defer VCS detection when too many jobs are running
In cases like using `:cfdo`, many buffers may be quickly visited, thus
starting lots of VCS detection jobs. This can lead to the (n)vim
process having too many open files and all the detection jobs noisily
failing.
Limit VCS detection to 50 concurrent jobs to mitigate this problem.
Since `b:sy` is not being set when detection is deferred, the next visit
to the buffer will still run VCS detection.
Closes #3331 parent 8dc2573 commit 701d22f
3 files changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
13 | 18 | | |
14 | 19 | | |
15 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| 134 | + | |
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
0 commit comments