branch: elpa/golden-ratio
commit 351fe5f8f1008b15e516c64070bdfdbfa850e0ad
Author: Roman Gonzalez <[email protected]>
Commit: Roman Gonzalez <[email protected]>
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 ()