File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -195,16 +195,21 @@ EVENT is a string describing the change."
195
195
(setq ivy--old-cands ivy--all-candidates)
196
196
(ivy--exhibit)))))
197
197
198
+ (defcustom counsel-async-filter-update-time 500000
199
+ " The amount of time in microseconds to wait until updating
200
+ `counsel--async-filter' ."
201
+ :type 'integer
202
+ :group 'ivy )
203
+
198
204
(defun counsel--async-filter (process str )
199
205
" Receive from PROCESS the output STR.
200
206
Update the minibuffer with the amount of lines collected every
201
- 0.5 seconds since the last update."
207
+ `counsel-async-filter-update-time' microseconds since the last update."
202
208
(with-current-buffer (process-buffer process)
203
209
(insert str))
204
210
(let (size)
205
211
(when (time-less-p
206
- ; ; 0.5s
207
- '(0 0 500000 0 )
212
+ `(0 0 , counsel-async-filter-update-time 0 )
208
213
(time-since counsel--async-time))
209
214
(with-current-buffer (process-buffer process)
210
215
(goto-char (point-min ))
You can’t perform that action at this time.
0 commit comments