branch: master
commit 8f527d7b42dd30db6b48dee064714a584570c9fe
Author: Oleh Krehel <ohwoeo...@gmail.com>
Commit: Oleh Krehel <ohwoeo...@gmail.com>

    ivy.el (ivy-next-history-element): No "\\_<" for dynamic-collection
    
    "\\_<" regex is Emacs-specific and should only be done if
    :dynamic-collection is nil.
    It is nil for `counsel-git-grep' with repositories < 20000 lines, but
    non-nil for larger ones.
    
    Fixes #409
---
 ivy.el |    1 +
 1 file changed, 1 insertion(+)

diff --git a/ivy.el b/ivy.el
index 5c89d7f..a09f657 100644
--- a/ivy.el
+++ b/ivy.el
@@ -895,6 +895,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 (ivy-state-dynamic-collection ivy-last))
                    (> (point) (minibuffer-prompt-end)))
           (undo-boundary)
           (insert "\\_>")

Reply via email to