summaryrefslogtreecommitdiff
path: root/lisp/mouse.el
diff options
context:
space:
mode:
authorMartin Rudalics <rudalics@gmx.at>2011-10-22 11:43:09 +0200
committerMartin Rudalics <rudalics@gmx.at>2011-10-22 11:43:09 +0200
commit42ee24ed38db25d3b2c78c612f48a969e2be5a64 (patch)
treeb0cf9353348fb568d3349e59b27d6d8788579520 /lisp/mouse.el
parent804a4315bdae38f866623b93635c6568f66ba69e (diff)
downloademacs-42ee24ed38db25d3b2c78c612f48a969e2be5a64.tar.gz
Fix minibuffer resizing.
* mouse.el (mouse-drag-line): Fix minibuffer resizing broken by last change.
Diffstat (limited to 'lisp/mouse.el')
-rw-r--r--lisp/mouse.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index ffa3db738ac..78a666419b6 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -406,6 +406,7 @@ must be one of the symbols header, mode, or vertical."
(mouse-on-link-p start)))
(enlarge-minibuffer
(and (eq line 'mode)
+ (not resize-mini-windows)
(eq (window-frame minibuffer-window) frame)
(not (one-window-p t frame))
(= (nth 1 (window-edges minibuffer-window))
@@ -422,7 +423,8 @@ must be one of the symbols header, mode, or vertical."
(setq done t)))
((eq line 'mode)
;; Check whether mode-line can be dragged at all.
- (when (window-at-side-p window 'bottom)
+ (when (and (window-at-side-p window 'bottom)
+ (not enlarge-minibuffer))
(setq done t)))
((eq line 'vertical)
;; Get the window to adjust for the vertical case.