Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty string at end of collection causes selection to start at end of list #1230

jschaf opened this issue Oct 9, 2017 · 1 comment


Copy link

jschaf commented Oct 9, 2017

Using a collection with an empty string causes ivy-read to position the initial cursor at the end of the list.

Minimal reproducible case:

(defun ivy-bug-at-end-of-list ()
  (ivy-read "Bug: "
            (list "1" "2" "3" "4" "5" "")
            :keymap ivy-minibuffer-map
            :action (lambda (x) (message "%s" x))))

Running that displays 1 through 5 in the minibuffer but not the empty string. The cursor starts outside the visible portion on the empty string.

Copy link

abo-abo commented Oct 10, 2017


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

2 participants