(ivy--sort-maybe
cands))
(setq counsel-grep-last-line nil)
- (setq counsel--async-duration
- (time-to-seconds (time-since counsel--async-start)))
+ (when counsel--async-start
+ (setq counsel--async-duration
+ (time-to-seconds (time-since counsel--async-start))))
(let ((re (funcall ivy--regex-function ivy-text)))
(unless (stringp re)
(setq re (caar re)))