diff options
author | Eli Zaretskii <eliz@gnu.org> | 2000-10-08 06:16:42 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2000-10-08 06:16:42 +0000 |
commit | 739e92a711753bf71dc29ff7fa15032149721137 (patch) | |
tree | fd8e25432fed6407d7caaf9a8b2b5896c1bd3341 /lisp/mouse.el | |
parent | 8be7408c88c38ed0a6dc6e50fab7c8f35be66544 (diff) | |
download | emacs-739e92a711753bf71dc29ff7fa15032149721137.tar.gz |
(mouse-drag-mode-line-1): Fix an off-by-one error in
computing growth when dragging the header line.
Diffstat (limited to 'lisp/mouse.el')
-rw-r--r-- | lisp/mouse.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el index f4f35d90673..4f6ba257323 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el @@ -380,10 +380,11 @@ MODE-LINE-P non-nil means a mode line is dragged." (when (< (- y top -1) window-min-height) (setq y (+ top window-min-height -1))) (setq growth (- y bot -1))) - (t - (when (< (- bot y -1) window-min-height) - (setq y (- bot window-min-height -1))) - (setq growth (- top y -1)))) + (t ; header line + (when (< (- bot y) window-min-height) + (setq y (- bot window-min-height))) + ;; The window's top includes the header line! + (setq growth (- top y)))) (setq wconfig (current-window-configuration)) ;; Check for an error case. |