From 9f9b522faf1c5926d24a9bf163d2965c62847508 Mon Sep 17 00:00:00 2001 From: "Basil L. Contovounesios" Date: Fri, 2 Feb 2018 19:02:05 +0000 Subject: [PATCH] Minor logic simplification --- counsel-projectile.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/counsel-projectile.el b/counsel-projectile.el index 10ccd31..9a0a8a8 100644 --- a/counsel-projectile.el +++ b/counsel-projectile.el @@ -105,8 +105,7 @@ the default action in the list and the remaining elements are the actions (a key, a function, and a name for each action)." (let (index) (if (integerp action-item) - (when (and (> action-item 0) - (< action-item (length action-list))) + (when (< 0 action-item (length action-list)) (setq index action-item)) (setq index (cl-position-if (cond