[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/helm 385368ed8e 1/3: Use helm-alive-p in helm-grep-filter-
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/helm 385368ed8e 1/3: Use helm-alive-p in helm-grep-filter-one-by-one |
Date: |
Thu, 10 Feb 2022 03:02:32 -0500 (EST) |
branch: elpa/helm
commit 385368ed8e9622c7344a40fc62ecc277d7210da1
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>
Use helm-alive-p in helm-grep-filter-one-by-one
Previously we were using (null (eq major-mode 'helm-grep-mode)) which
work fine in either helm of a helm-grep-mode buffer, but the test
returns t as well in any other buffer which prevent reverting a buffer
from somewhere else.
---
helm-grep.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/helm-grep.el b/helm-grep.el
index 3e6b228fe2..f1d82bf47a 100644
--- a/helm-grep.el
+++ b/helm-grep.el
@@ -1287,7 +1287,7 @@ matching `helm-zgrep-file-extension-regexp' only."
(let ((helm-grep-default-directory-fn
(or helm-grep-default-directory-fn
(lambda () (or helm-ff-default-directory
- (and (null (eq major-mode 'helm-grep-mode))
+ (and helm-alive-p
(helm-default-directory))
default-directory)))))
(if (consp candidate)