(mouse-scroll-subr): Handle if window-end returns nil.
This commit is contained in:
parent
65627aad68
commit
0320e66f47
1 changed files with 7 additions and 5 deletions
|
@ -478,11 +478,13 @@ Upon exit, point is at the far edge of the newly visible text."
|
|||
(progn
|
||||
(set-window-start window (point))
|
||||
(if (natnump jump)
|
||||
(progn
|
||||
(goto-char (window-end window))
|
||||
;; window-end doesn't reflect the window's new
|
||||
;; start position until the next redisplay. Hurrah.
|
||||
(vertical-motion (1- jump) window))
|
||||
(if (window-end window)
|
||||
(progn
|
||||
(goto-char (window-end window))
|
||||
;; window-end doesn't reflect the window's new
|
||||
;; start position until the next redisplay.
|
||||
(vertical-motion (1- jump) window))
|
||||
(vertical-motion (- (window-height window) 2)))
|
||||
(goto-char (window-start window)))
|
||||
(if overlay
|
||||
(move-overlay overlay start (point)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue