Permalink
Browse files

Update and rerun only when the Smex minibuffer is selected

  • Loading branch information...
1 parent 97b4a4d commit 0fc84c0760d922aa9fd47c92467be8cff9f7d7cf @nonsequitur committed Jan 11, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 smex.el
View
@@ -89,7 +89,9 @@ Set this to nil to disable fuzzy matching."
(smex-read-and-run smex-ido-cache)))
(defsubst smex-already-running ()
- (and (boundp 'ido-choice-list) (eql ido-choice-list smex-ido-cache)))
+ (and (boundp 'ido-choice-list)
+ (eql ido-choice-list smex-ido-cache)
+ (minibuffer-window-active-p (selected-window))))
(defsubst smex-update-and-rerun ()
(smex-do-with-selected-item

0 comments on commit 0fc84c0

Please sign in to comment.