aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>2002-07-01 07:55:03 +0000
committerRichard M. Stallman <[email protected]>2002-07-01 07:55:03 +0000
commitacda20e1c0ea1c4bc4e14279f5f42c7ae3171e75 (patch)
tree5cdcff0121eba4761d25ebfa9edf3408dff910dd /src
parent8db426c786b66e94041a692ef18e301afc6ba913 (diff)
(redisplay_internal): Make optional_new_start really work.
Diffstat (limited to 'src')
-rw-r--r--src/xdisp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index 066f4fa002..2f8bc65f6c 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -8691,6 +8691,7 @@ redisplay_internal (preserve_echo_area)
&& this_line_buffer == current_buffer
&& current_buffer == XBUFFER (w->buffer)
&& NILP (w->force_start)
+ && NILP (w->optional_new_start)
/* Point must be on the line that we have info recorded about. */
&& PT >= CHARPOS (tlbufpos)
&& PT <= Z - CHARPOS (tlendpos)
@@ -9470,9 +9471,9 @@ run_window_scroll_functions (window, startp)
/* Modify the desired matrix of window W and W->vscroll so that the
- line containing the cursor is fully visible. If this requires
- larger matrices than are allocated, set fonts_changed_p and return
- 0. */
+ line containing the cursor is fully visible.
+ A value of 1 means there is nothing to be done or we did it.
+ A value of 0 causes redisplay. */
static int
make_cursor_line_fully_visible (w)
@@ -9490,8 +9491,7 @@ make_cursor_line_fully_visible (w)
matrix = w->desired_matrix;
row = MATRIX_ROW (matrix, w->cursor.vpos);
- /* If the cursor row is not partially visible, there's nothing
- to do. */
+ /* If the cursor row is not partially visible, there's nothing to do. */
if (!MATRIX_ROW_PARTIALLY_VISIBLE_P (row))
return 1;