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

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

Closed
DWgit opened this Issue Apr 21, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@DWgit

DWgit commented Apr 21, 2016

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

@abo-abo abo-abo closed this in a891df3 Apr 21, 2016

@abo-abo

This comment has been minimized.

Show comment
Hide comment
@abo-abo

abo-abo Apr 21, 2016

Owner

Thanks.

Owner

abo-abo commented Apr 21, 2016

Thanks.

@DWgit

This comment has been minimized.

Show comment
Hide comment
@DWgit

DWgit Apr 21, 2016

Thanks!

On 04/21/2016 10:42 AM, Oleh Krehel wrote:

Closed #481 #481 via a891df3
a891df3.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#481 (comment)

DWgit commented Apr 21, 2016

Thanks!

On 04/21/2016 10:42 AM, Oleh Krehel wrote:

Closed #481 #481 via a891df3
a891df3.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#481 (comment)

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