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

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

[nongnu] elpa/golden-ratio 351fe5f8f1 12/95: Removing error messages on


From: ELPA Syncer
Subject: [nongnu] elpa/golden-ratio 351fe5f8f1 12/95: Removing error messages on minibuffer and full height/width windows
Date: Thu, 7 Sep 2023 22:02:09 -0400 (EDT)

branch: elpa/golden-ratio
commit 351fe5f8f1008b15e516c64070bdfdbfa850e0ad
Author: Roman Gonzalez <romanandreg@gmail.com>
Commit: Roman Gonzalez <romanandreg@gmail.com>

    Removing error messages on minibuffer and full height/width windows
    
    It seems emacs 23 throws an error on windowc when trying to resize
    width/height of window that has full width/height size.
---
 golden-ratio.el | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/golden-ratio.el b/golden-ratio.el
index a43f76e10d..03f7cb8da9 100644
--- a/golden-ratio.el
+++ b/golden-ratio.el
@@ -34,8 +34,10 @@
                            (- (second dimensions)
                               (window-width window)))))
     (progn
-      (enlarge-window nrow nil)
-      (enlarge-window ncol t))))
+      (if (not (window-full-height-p))
+          (enlarge-window nrow nil))
+      (if (not (window-full-width-p))
+          (enlarge-window ncol t)))))
 
 
 (defun golden-ratio ()



reply via email to

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