Skip to content

swiper-all/swiper--multi-candidates throws wrong-type-argument wholenump #481

Description

@DWgit

If a buffer contains a long line with escaped characters (e.g., \230 or ^e), then swiper--multi-candidates throws wrong-type-argument because the subtraction below produces a negative number.

(make-string (- ww (string-width s) (length (buffer-name)) 3)

To replicate:

Open a new emacs session with badbuf.txt (attached), and do a swiper-all.

Contrast with goodbuf.txt, which is identical except for lacking escaped characters.

badbuf.txt
goodbuf.txt

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