[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 5269b79 07/54: When initial input contains a plus, escape
From: |
Oleh Krehel |
Subject: |
[elpa] master 5269b79 07/54: When initial input contains a plus, escape it |
Date: |
Tue, 29 Sep 2015 14:09:48 +0000 |
branch: master
commit 5269b799e1604c39495beaf7949a4547ef3afcf0
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
When initial input contains a plus, escape it
* ivy.el (ivy-completing-read): Escape the plus in the initial input,
for it to not be interpreted like a regex.
Fixes #195
---
ivy.el | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/ivy.el b/ivy.el
index b6b5d00..1eb6b7d 100644
--- a/ivy.el
+++ b/ivy.el
@@ -954,6 +954,7 @@ This is useful for recursive `ivy-read'."
((eq collection 'internal-complete-buffer)
(setq coll (ivy--buffer-list "" ivy-use-virtual-buffers)))
((or (functionp collection)
+ (byte-code-function-p collection)
(vectorp collection)
(listp (car collection)))
(setq coll (all-completions "" collection predicate)))
@@ -1038,7 +1039,10 @@ The history, defaults and input-method arguments are
ignored for now."
:require-match require-match
:initial-input (if (consp initial-input)
(car initial-input)
- initial-input)
+ (if (string-match "\\+" initial-input)
+ (replace-regexp-in-string
+ "\\+" "\\\\+" initial-input)
+ initial-input))
:preselect (if (listp def) (car def) def)
:history history
:keymap nil
- [elpa] master 78499dd 22/54: Add default values for minibuffer faces, (continued)
- [elpa] master 78499dd 22/54: Add default values for minibuffer faces, Oleh Krehel, 2015/10/07
- [elpa] master dad8183 23/54: Make the minibuffer faces look nicer, Oleh Krehel, 2015/10/07
- [elpa] master 4b17d9a 27/54: Fix up the "foo ! bar" matching and highlighting, Oleh Krehel, 2015/10/07
- [elpa] master d3f1f2c 18/54: Add extra faces for minibuffer highlighting, Oleh Krehel, 2015/10/07
- [elpa] master 1bf45be 21/54: ivy.el (ivy--format-minibuffer-line): Fix nil regexp, Oleh Krehel, 2015/10/07
- [elpa] master e03d968 50/54: ivy.el (ivy--insert-prompt): Avoid negative length error, Oleh Krehel, 2015/10/07
- [elpa] master 7a2070b 45/54: Fix minibuffer collapse in text mode emacs, Oleh Krehel, 2015/10/07
- [elpa] master ba49407 53/54: counsel.el (counsel-ag-function): Improve for fancy faces, Oleh Krehel, 2015/10/07
- [elpa] master 00d8f08 12/54: counsel.el (counsel-org-tag): Now works in agenda, Oleh Krehel, 2015/10/07
- [elpa] master 860e276 13/54: Add swiper-multi command, Oleh Krehel, 2015/10/07
- [elpa] master 5269b79 07/54: When initial input contains a plus, escape it,
Oleh Krehel <=
- [elpa] master 59908cd 20/54: Make ivy-current blend correctly for fancy minibuffer, Oleh Krehel, 2015/10/07
- [elpa] master 5eac62d 26/54: Move swiper-minibuffer-faces to ivy.el, Oleh Krehel, 2015/10/07
- [elpa] master d374afe 31/54: Set truncate-lines in the minibuffer, Oleh Krehel, 2015/10/07
- [elpa] master a57ac0c 28/54: counsel.el (counsel-unicode-char): Add own history, Oleh Krehel, 2015/10/07
- [elpa] master 1319301 35/54: counsel.el (counsel-yank-pop-truncate): Add group, Oleh Krehel, 2015/10/07
- [elpa] master c4d33d3 36/54: ivy.el (ivy-format-function-default): Fix boundp bug, Oleh Krehel, 2015/10/07
- [elpa] master 7410d2d 29/54: ivy.el (ivy-format-function-default): Handle fringe-mode 0, Oleh Krehel, 2015/10/07
- [elpa] master a019441 41/54: Add autoloads to some important functions, Oleh Krehel, 2015/10/07
- [elpa] master ce33972 37/54: counsel.el (counsel-yank-pop): Add autoload, Oleh Krehel, 2015/10/07
- [elpa] master 9679bd7 46/54: swiper.el (swiper--ivy): Remove obsolete version check, Oleh Krehel, 2015/10/07