branch: master
commit 435f2b6edfe3ab517c9eda56c6351f0bcfdf3845
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    Add work-around for minibuffer not re-sizing for many frames
    
    * ivy.el (ivy--minibuffer-setup): When `truncate-lines' is set, it works
      fine for one graphic frame, but not for two (unknown why); add a
      work-around.
    
    Fixes #229
---
 ivy.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ivy.el b/ivy.el
index 0492807..1d965e1 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1229,7 +1229,7 @@ Insert .* between each char."
   (set (make-local-variable 'minibuffer-default-add-function)
        (lambda ()
          (list ivy--default)))
-  (when (display-graphic-p)
+  (when (and (display-graphic-p) (= (length (frame-list)) 1))
     (setq truncate-lines t))
   (setq-local max-mini-window-height ivy-height)
   (add-hook 'post-command-hook #'ivy--exhibit nil t)

Reply via email to