aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c5
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