branch: master
commit 7410d2d03a916e17308b3104a8e53108389762fc
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    ivy.el (ivy-format-function-default): Handle fringe-mode 0
    
    Fixes #219
---
 ivy.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ivy.el b/ivy.el
index 5574cd4..2b36d2a 100644
--- 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)

Reply via email to