Skip to content

Incorrect window-start with ivy-avy #1004

@basil-conto

Description

@basil-conto

Steps to reproduce

  1. emacs -Q
  2. M-x package-initialize RET
  3. M-x ivy-mode RET
  4. M-: (ivy-read "Pick a number: " (mapcar #'number-to-string (number-sequence 0 (ash ivy-height 1)))) RET
  5. M->
  6. C-'
  7. Select candidate a
    • Expected result: "12"
    • Actual result: "0"

I believe I have narrowed the problem down to function window-start always returning 1, even when scrolled further down the candidate list. What I find peculiar is that window-end is always correct and (pos-visible-in-window-p (window-start) is always t. I have tried calling redisplay and calling window-end as (window-end nil t) before calling window-start but the result is always the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions