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

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

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

Comments

@DWgit
Copy link

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
Copy link
Owner

abo-abo commented Apr 21, 2016

Thanks.

@DWgit
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants