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

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

DWgit opened this issue Apr 21, 2016 · 2 comments

Comments

@DWgit
Copy link

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

@abo-abo abo-abo commented Apr 21, 2016

Thanks.

@DWgit
Copy link
Author

@DWgit 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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.