Skip to content

Commit c021a3b

Browse files
author
Thierry Volpiatto
committed
Avoid unexpected quit when typing slowly or deleting backward
Seems inhibit-quit is not enough here, use while-no-input.
1 parent 8ba43d2 commit c021a3b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

helm-recoll.el

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,9 +283,10 @@ For more details see:
283283
; char backward.
284284
(helm-log "Command line used was:\n\n>>>%s" (mapconcat 'identity cmd " "))
285285
(with-temp-buffer
286-
(apply #'call-process "recoll" nil t nil (cdr cmd))
287-
(split-string (buffer-string) "\n" t))))
288-
286+
(unless (eq (while-no-input
287+
(apply #'call-process "recoll" nil '(t nil) nil (cdr cmd)))
288+
t)
289+
(split-string (buffer-string) "\n" t)))))
289290
;; As of Version: 1.22.4-1:
290291
;; text/x-emacs-lisp [file:///home/thierry/elisp/Emacs-wgrep/wgrep-helm.el] [wgrep-helm.el] 3556 bytes
291292
(defun helm-recoll-filter-one-by-one (file)

0 commit comments

Comments
 (0)