Permalink
Browse files

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.
  • Loading branch information...
1 parent 0517fc1 commit 351fe5f8f1008b15e516c64070bdfdbfa850e0ad @roman committed Oct 16, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 golden-ratio.el
View
@@ -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 ()

0 comments on commit 351fe5f

Please sign in to comment.