]> code.delx.au - gnu-emacs-elpa/commitdiff
ivy.el (ivy-next-history-element): Improve
authorOleh Krehel <ohwoeowho@gmail.com>
Fri, 25 Mar 2016 20:42:30 +0000 (21:42 +0100)
committerOleh Krehel <ohwoeowho@gmail.com>
Fri, 25 Mar 2016 20:42:30 +0000 (21:42 +0100)
Don't add <> bounds for URL.

ivy.el

diff --git a/ivy.el b/ivy.el
index ed0f232d5dab890591237edb25a7b63e0cce7db8..1d7fcb3878d06989afe03b9ea564df29c2f172b8 100644 (file)
--- a/ivy.el
+++ b/ivy.el
@@ -908,6 +908,7 @@ Call the permanent action if possible."
         (insert ivy--default)
         (when (and (with-ivy-window (derived-mode-p 'prog-mode))
                    (not (file-exists-p ivy--default))
+                   (not (ffap-url-p ivy--default))
                    (not (ivy-state-dynamic-collection ivy-last))
                    (> (point) (minibuffer-prompt-end)))
           (undo-boundary)