]> code.delx.au - gnu-emacs-elpa/commitdiff
ivy.el (ivy-next-history-element): Use "\\_<" instead of "\\b"
authorOleh Krehel <ohwoeowho@gmail.com>
Fri, 12 Feb 2016 09:08:33 +0000 (10:08 +0100)
committerOleh Krehel <ohwoeowho@gmail.com>
Fri, 12 Feb 2016 09:08:33 +0000 (10:08 +0100)
ivy.el

diff --git a/ivy.el b/ivy.el
index b144182b16f928d1f507e14ed28985de559950ab..8960168f6eced127b88418cc64276e716c45f508 100644 (file)
--- a/ivy.el
+++ b/ivy.el
@@ -857,9 +857,9 @@ Call the permanent action if possible."
         (when (and (with-ivy-window (derived-mode-p 'prog-mode))
                    (> (point) (minibuffer-prompt-end)))
           (undo-boundary)
-          (insert "\\b")
+          (insert "\\_>")
           (goto-char (minibuffer-prompt-end))
-          (insert "\\b")
+          (insert "\\_<")
           (forward-char (+ 2 (length ivy--default)))))
     (next-history-element arg))
   (ivy--cd-maybe)