comparison src/window.c @ 8486:52b7441e731b

(Fpos_visible_in_window_p): Do something reasonable if w->start is outside the buffer bounds.
author Richard M. Stallman <rms@gnu.org>
date Mon, 08 Aug 1994 10:14:32 +0000
parents a1961f8669d3
children 865daa7a9faf
comparison
equal deleted inserted replaced
8485:6e4b40c80021 8486:52b7441e731b
224 return Qnil; 224 return Qnil;
225 } 225 }
226 else 226 else
227 { 227 {
228 if (posint > BUF_ZV (buf)) 228 if (posint > BUF_ZV (buf))
229 return Qnil;
230
231 /* w->start can be out of range. If it is, do something reasonable. */
232 if (top < BUF_BEGV (buf) || top > BUF_ZV (buf))
229 return Qnil; 233 return Qnil;
230 234
231 /* If that info is not correct, calculate afresh */ 235 /* If that info is not correct, calculate afresh */
232 posval = *compute_motion (top, 0, (hscroll ? 1 - hscroll : 0), 236 posval = *compute_motion (top, 0, (hscroll ? 1 - hscroll : 0),
233 posint, height, 0, 237 posint, height, 0,