diff options
| author | Richard M. Stallman | 1998-05-19 22:34:36 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-05-19 22:34:36 +0000 |
| commit | 81d2de9b9ccc993e5e274b56c17ac045e1da38d5 (patch) | |
| tree | 5c05a49d72632963f90d9e3c9bd47e1017bd6db3 /src | |
| parent | f6f83635989adb89f6b75229610b251ceb3c2c62 (diff) | |
| download | emacs-81d2de9b9ccc993e5e274b56c17ac045e1da38d5.tar.gz emacs-81d2de9b9ccc993e5e274b56c17ac045e1da38d5.zip | |
(redisplay_window): Don't use window->start
if it is out of range of BEGV/ZV.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 9564cd841f3..f670259f3b8 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -1897,7 +1897,8 @@ redisplay_window (window, just_this_one, preserve_echo_area) | |||
| 1897 | 1897 | ||
| 1898 | /* If someone specified a new starting point but did not insist, | 1898 | /* If someone specified a new starting point but did not insist, |
| 1899 | check whether it can be used. */ | 1899 | check whether it can be used. */ |
| 1900 | if (!NILP (w->optional_new_start)) | 1900 | if (!NILP (w->optional_new_start) |
| 1901 | && startp >= BEGV && startp <= ZV) | ||
| 1901 | { | 1902 | { |
| 1902 | w->optional_new_start = Qnil; | 1903 | w->optional_new_start = Qnil; |
| 1903 | /* Check whether this start pos is usable given where point is. */ | 1904 | /* Check whether this start pos is usable given where point is. */ |
| @@ -3135,7 +3136,7 @@ pos_tab_offset (w, pos, pos_byte) | |||
| 3135 | 3136 | ||
| 3136 | return col; | 3137 | return col; |
| 3137 | } | 3138 | } |
| 3138 | 3139 | ||
| 3139 | /* Display one line of window W, starting at char position START in W's buffer. | 3140 | /* Display one line of window W, starting at char position START in W's buffer. |
| 3140 | START_BYTE is the corresponding byte position. | 3141 | START_BYTE is the corresponding byte position. |
| 3141 | 3142 | ||