From 24d8bcadceb469a3612a1f5387df4b7c8b6a3335 Mon Sep 17 00:00:00 2001 From: Shane Mulligan Date: Tue, 18 May 2021 01:56:13 +1200 Subject: [PATCH] Fix unexpected quit in terminal emacs --- helm-dash.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/helm-dash.el b/helm-dash.el index 9392cd2..e49d234 100644 --- a/helm-dash.el +++ b/helm-dash.el @@ -90,8 +90,9 @@ (helm-build-sync-source (car docset) :action-transformer #'helm-dash-actions :candidates (lambda () - (cl-loop for row in (helm-dash--run-query docset helm-pattern) - collect (helm-dash--candidate docset row))) + (let ((inhibit-quit (not (display-graphic-p)))) + (cl-loop for row in (helm-dash--run-query docset helm-pattern) + collect (helm-dash--candidate docset row)))) :volatile t :persistent-help "View doc" :requires-pattern helm-dash-min-length)))