From a891df30dc238a3a8943cb0b98647f69b71c034c Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Thu, 21 Apr 2016 16:41:55 +0200 Subject: [PATCH] swiper.el (swiper--multi-candidates): Add check Avoid calling `make-string' with a negative number. Fixes #481 --- swiper.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/swiper.el b/swiper.el index 349c3d4c1..2d4da5e95 100644 --- a/swiper.el +++ b/swiper.el @@ -677,7 +677,8 @@ Run `swiper' for those buffers." (1- len) len 'display (concat (make-string - (- ww (string-width s) (length (buffer-name)) 3) + (max 0 + (- ww (string-width s) (length (buffer-name)) 3)) ?\ ) (buffer-name)) s) -- 2.39.2