]> code.delx.au - gnu-emacs-elpa/commitdiff
ivy.el (ivy-next-history-element): Simplify
authorOleh Krehel <ohwoeowho@gmail.com>
Fri, 1 Apr 2016 05:59:59 +0000 (07:59 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Fri, 1 Apr 2016 05:59:59 +0000 (07:59 +0200)
Add extra symbol bounds only for swiper.

ivy.el

diff --git a/ivy.el b/ivy.el
index 2b7002c3484e3f52c9e36482cb211c1ad8ad7620..b5b8f868281961383f1e13c4cfee824433d2c555 100644 (file)
--- a/ivy.el
+++ b/ivy.el
@@ -911,6 +911,7 @@ Call the permanent action if possible."
       (progn
         (insert ivy--default)
         (when (and (with-ivy-window (derived-mode-p 'prog-mode))
+                   (eq (ivy-state-caller ivy-last) 'swiper)
                    (not (file-exists-p ivy--default))
                    (not (ffap-url-p ivy--default))
                    (not (ivy-state-dynamic-collection ivy-last))