Mercurial > emacs
comparison src/xdisp.c @ 8594:4d8d02befd11
(redisplay_window): Don't access text before BEGV.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 23 Aug 1994 20:50:09 +0000 |
parents | 66866be86727 |
children | 4ce43042e7ad |
comparison
equal
deleted
inserted
replaced
8593:ade21bb3acc8 | 8594:4d8d02befd11 |
---|---|
1177 we already know it will lose */ | 1177 we already know it will lose */ |
1178 } | 1178 } |
1179 /* If current starting point was originally the beginning of a line | 1179 /* If current starting point was originally the beginning of a line |
1180 but no longer is, find a new starting point. */ | 1180 but no longer is, find a new starting point. */ |
1181 else if (!NILP (w->start_at_line_beg) | 1181 else if (!NILP (w->start_at_line_beg) |
1182 && !(startp == BEGV | 1182 && !(startp <= BEGV |
1183 || FETCH_CHAR (startp - 1) == '\n')) | 1183 || FETCH_CHAR (startp - 1) == '\n')) |
1184 { | 1184 { |
1185 goto recenter; | 1185 goto recenter; |
1186 } | 1186 } |
1187 else if (just_this_one && !MINI_WINDOW_P (w) | 1187 else if (just_this_one && !MINI_WINDOW_P (w) |
1270 | 1270 |
1271 pos = *vmotion (PT, - (height / 2), width, hscroll, window); | 1271 pos = *vmotion (PT, - (height / 2), width, hscroll, window); |
1272 try_window (window, pos.bufpos); | 1272 try_window (window, pos.bufpos); |
1273 | 1273 |
1274 startp = marker_position (w->start); | 1274 startp = marker_position (w->start); |
1275 w->start_at_line_beg = | 1275 w->start_at_line_beg |
1276 (startp == BEGV || FETCH_CHAR (startp - 1) == '\n') ? Qt : Qnil; | 1276 = (startp == BEGV || FETCH_CHAR (startp - 1) == '\n') ? Qt : Qnil; |
1277 | 1277 |
1278 done: | 1278 done: |
1279 if ((!NILP (w->update_mode_line) | 1279 if ((!NILP (w->update_mode_line) |
1280 /* If window not full width, must redo its mode line | 1280 /* If window not full width, must redo its mode line |
1281 if the window to its side is being redone */ | 1281 if the window to its side is being redone */ |