HCoop
/
bpt
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9a5196d
)
(Fpos_visible_in_window_p): Do something reasonable
author
Richard M. Stallman
<rms@gnu.org>
Mon, 8 Aug 1994 10:14:32 +0000
(10:14 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Mon, 8 Aug 1994 10:14:32 +0000
(10:14 +0000)
if w->start is outside the buffer bounds.
src/window.c
patch
|
blob
|
blame
|
history
diff --git
a/src/window.c
b/src/window.c
index
bec4aaa
..
e89fa87
100644
(file)
--- a/
src/window.c
+++ b/
src/window.c
@@
-228,6
+228,10
@@
POS defaults to point; WINDOW, to the selected window.")
if (posint > BUF_ZV (buf))
return Qnil;
+ /* w->start can be out of range. If it is, do something reasonable. */
+ if (top < BUF_BEGV (buf) || top > BUF_ZV (buf))
+ return Qnil;
+
/* If that info is not correct, calculate afresh */
posval = *compute_motion (top, 0, (hscroll ? 1 - hscroll : 0),
posint, height, 0,