emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ebdb dd13813 171/350: Bah, fixups to a19ff0a


From: Eric Abrahamsen
Subject: [elpa] externals/ebdb dd13813 171/350: Bah, fixups to a19ff0a
Date: Mon, 14 Aug 2017 11:46:29 -0400 (EDT)

branch: externals/ebdb
commit dd1381388484efe9eed524d55f163bfb3b45c218
Author: Eric Abrahamsen <address@hidden>
Commit: Eric Abrahamsen <address@hidden>

    Bah, fixups to a19ff0a
    
    * ebdb-com.el (ebdb-pop-up-window): Compile and test first, why don't
      you?
---
 ebdb-com.el | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/ebdb-com.el b/ebdb-com.el
index 0745f56..4d3c712 100644
--- a/ebdb-com.el
+++ b/ebdb-com.el
@@ -973,15 +973,16 @@ If the whole POP argument is nil, just re-use the current
 buffer."
   (let* ((split-window (car-safe pop))
         (buffer-window (get-buffer-window buf t))
-        (horiz/vert (if (> (window-total-width split-window)
-                           (window-total-height split-window))
+        (horiz/vert (if (and split-window
+                             (> (window-total-width split-window)
+                                (window-total-height split-window)))
                         'horiz
                       'vert)))
 
     (cond (buffer-window
           ;; It's already visible, re-use it.
           nil)
-         ((and (null split-window) (null size))
+         ((null pop)
           ;; Not splitting, but buffer isn't visible, just take up
           ;; the whole window.
           (set-window-buffer (selected-window) buf)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]