aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2000-10-08 06:16:42 +0000
committerEli Zaretskii2000-10-08 06:16:42 +0000
commit739e92a711753bf71dc29ff7fa15032149721137 (patch)
treefd8e25432fed6407d7caaf9a8b2b5896c1bd3341
parent8be7408c88c38ed0a6dc6e50fab7c8f35be66544 (diff)
downloademacs-739e92a711753bf71dc29ff7fa15032149721137.tar.gz
emacs-739e92a711753bf71dc29ff7fa15032149721137.zip
(mouse-drag-mode-line-1): Fix an off-by-one error in
computing growth when dragging the header line.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/mouse.el9
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 96e0a51dfd7..14b3d557a90 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,10 @@
12000-10-08 Eli Zaretskii <eliz@is.elta.co.il> 12000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
2 2
3 * mouse.el (mouse-drag-mode-line-1): Fix an off-by-one error in
4 computing growth when dragging the header line.
5
62000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
7
3 * simple.el (kill-line): Doc fix. 8 * simple.el (kill-line): Doc fix.
4 9
52000-10-08 Miles Bader <miles@gnu.org> 102000-10-08 Miles Bader <miles@gnu.org>
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."
380 (when (< (- y top -1) window-min-height) 380 (when (< (- y top -1) window-min-height)
381 (setq y (+ top window-min-height -1))) 381 (setq y (+ top window-min-height -1)))
382 (setq growth (- y bot -1))) 382 (setq growth (- y bot -1)))
383 (t 383 (t ; header line
384 (when (< (- bot y -1) window-min-height) 384 (when (< (- bot y) window-min-height)
385 (setq y (- bot window-min-height -1))) 385 (setq y (- bot window-min-height)))
386 (setq growth (- top y -1)))) 386 ;; The window's top includes the header line!
387 (setq growth (- top y))))
387 (setq wconfig (current-window-configuration)) 388 (setq wconfig (current-window-configuration))
388 389
389 ;; Check for an error case. 390 ;; Check for an error case.