]> code.delx.au - gnu-emacs-elpa/commitdiff
ivy.el (ivy-format-function-default): Handle fringe-mode 0
authorOleh Krehel <ohwoeowho@gmail.com>
Thu, 10 Sep 2015 09:21:12 +0000 (11:21 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Thu, 10 Sep 2015 09:21:12 +0000 (11:21 +0200)
Fixes #219

ivy.el

diff --git a/ivy.el b/ivy.el
index 5574cd4eb07bcdd2b2b0213623ec53461d57a822..2b36d2afef724269700eabca3836d7920c7cd5e8 100644 (file)
--- a/ivy.el
+++ b/ivy.el
@@ -1500,7 +1500,8 @@ This string will be inserted into the minibuffer.")
 
 (defun ivy-format-function-default (cands)
   "Transform CANDS into a string for minibuffer."
-  (let ((ww (window-width)))
+  (let ((ww (- (window-width)
+               (if (eq fringe-mode 0) 1 0))))
     (mapconcat
      (lambda (s)
        (if (> (length s) ww)