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

Closed
jschaf opened this Issue Oct 9, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@jschaf

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 ()
  (interactive)
  (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.

@abo-abo abo-abo closed this in c9f86b5 Oct 10, 2017

@abo-abo

This comment has been minimized.

Owner

abo-abo commented Oct 10, 2017

Thanks.

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