aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Rankin <william@bydasein.com>2020-10-12 16:21:28 +1000
committerWilliam Rankin <william@bydasein.com>2020-10-12 16:21:28 +1000
commitf069171d2687d441a0136206896d05987e7bd03c (patch)
treee0d6def4fb2c6f7e6f9ab6406501aef6dbd3b18d
parentd0acceffbdd3edea4eb2ad86938f6e6c4f706ece (diff)
downloadbinder-f069171d2687d441a0136206896d05987e7bd03c.zip
Fix binder-read when using relative path
binder-root will return nil while file-equal-p expects two strings
-rw-r--r--binder.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/binder.el b/binder.el
index 74eb018..732f8d4 100644
--- a/binder.el
+++ b/binder.el
@@ -453,7 +453,8 @@ With optional argument FILTER, call `binder-filter' on data."
(user-error "No binder file found"))
;; If the cache doesn't refer to the project directory, set the cache to
;; nil.
- ((not (file-equal-p binder-project-directory (binder-root)))
+ ((and (binder-root)
+ (not (file-equal-p binder-project-directory (binder-root))))
(setq binder--cache nil))
;; If the project file is newer than the cache, offer to revert from disk
;; (and write binder data), regardless, set the cache to nil.