summaryrefslogtreecommitdiff
path: root/modes
diff options
context:
space:
mode:
authorrandy1burrell <randy1burrell@yahoo.com>2021-01-28 22:56:26 -0500
committerJames N <james@jojojames.com>2021-01-28 23:44:33 -0800
commit315a750576d543b58f32b50a91840339985bb1c0 (patch)
treef8cf842dd13f06c808f00544160b8f8ee345c9b4 /modes
parenta3aaa508f729e8962c090b8e8751afb92c43af6d (diff)
refactor: Simplify condition in `evil-collection-company-supported-p`
The complicated condition in `evil-collection-company-supported-p` from the previous commit got removed in favour of a new condition that check if `evil-mode` is not active and returns true.
Diffstat (limited to 'modes')
-rw-r--r--modes/company/evil-collection-company.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/modes/company/evil-collection-company.el b/modes/company/evil-collection-company.el
index eae5c88..442ce34 100644
--- a/modes/company/evil-collection-company.el
+++ b/modes/company/evil-collection-company.el
@@ -62,9 +62,9 @@ be set through custom or before evil-collection loads."
(defun evil-collection-company-supported-p (command &rest _)
"Return non-nil if `evil-state' is in supported states."
(cond
+ ((not (bound-and-true-p evil-mode)) t)
((eq command 'prefix)
- (or (and (bound-and-true-p evil-mode) (memq evil-state evil-collection-company-supported-states))
- (not (bound-and-true-p evil-mode))))
+ (and (bound-and-true-p evil-mode) (memq evil-state evil-collection-company-supported-states)))
(t t)))
;;;###autoload