Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
0320e66f
Commit
0320e66f
authored
Mar 14, 1998
by
Richard M. Stallman
Browse files
(mouse-scroll-subr): Handle if window-end returns nil.
parent
65627aad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
lisp/mouse.el
lisp/mouse.el
+7
-5
No files found.
lisp/mouse.el
View file @
0320e66f
...
...
@@ -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
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment