emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/helm 3b848f4ba2: Fix error when helm-adaptive-history-file


From: ELPA Syncer
Subject: [nongnu] elpa/helm 3b848f4ba2: Fix error when helm-adaptive-history-file is nil
Date: Sat, 12 Mar 2022 14:58:20 -0500 (EST)

branch: elpa/helm
commit 3b848f4ba2534053fe4dec633b9e762da16679e2
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>

    Fix error when helm-adaptive-history-file is nil
---
 helm-adaptive.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/helm-adaptive.el b/helm-adaptive.el
index ae6d011419..e553f6dade 100644
--- a/helm-adaptive.el
+++ b/helm-adaptive.el
@@ -258,7 +258,9 @@ Useful when you have a old or corrupted
   (interactive)
   (when (y-or-n-p "Really delete all your `helm-adaptive-history'? ")
     (setq helm-adaptive-history nil)
-    (delete-file helm-adaptive-history-file)))
+    (when (and helm-adaptive-history-file
+               (file-exists-p helm-adaptive-history-file))
+      (delete-file helm-adaptive-history-file))))
 
 (defun helm-adaptive-compare (x y)
   "Compare display parts if some of candidates X and Y.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]