diff options
| author | Richard M. Stallman | 2002-07-01 07:55:03 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-07-01 07:55:03 +0000 |
| commit | acda20e1c0ea1c4bc4e14279f5f42c7ae3171e75 (patch) | |
| tree | 5cdcff0121eba4761d25ebfa9edf3408dff910dd /src | |
| parent | 8db426c786b66e94041a692ef18e301afc6ba913 (diff) | |
| download | emacs-acda20e1c0ea1c4bc4e14279f5f42c7ae3171e75.tar.gz emacs-acda20e1c0ea1c4bc4e14279f5f42c7ae3171e75.zip | |
(redisplay_internal): Make optional_new_start really work.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 066f4fa0027..2f8bc65f6c4 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -8691,6 +8691,7 @@ redisplay_internal (preserve_echo_area) | |||
| 8691 | && this_line_buffer == current_buffer | 8691 | && this_line_buffer == current_buffer |
| 8692 | && current_buffer == XBUFFER (w->buffer) | 8692 | && current_buffer == XBUFFER (w->buffer) |
| 8693 | && NILP (w->force_start) | 8693 | && NILP (w->force_start) |
| 8694 | && NILP (w->optional_new_start) | ||
| 8694 | /* Point must be on the line that we have info recorded about. */ | 8695 | /* Point must be on the line that we have info recorded about. */ |
| 8695 | && PT >= CHARPOS (tlbufpos) | 8696 | && PT >= CHARPOS (tlbufpos) |
| 8696 | && PT <= Z - CHARPOS (tlendpos) | 8697 | && PT <= Z - CHARPOS (tlendpos) |
| @@ -9470,9 +9471,9 @@ run_window_scroll_functions (window, startp) | |||
| 9470 | 9471 | ||
| 9471 | 9472 | ||
| 9472 | /* Modify the desired matrix of window W and W->vscroll so that the | 9473 | /* Modify the desired matrix of window W and W->vscroll so that the |
| 9473 | line containing the cursor is fully visible. If this requires | 9474 | line containing the cursor is fully visible. |
| 9474 | larger matrices than are allocated, set fonts_changed_p and return | 9475 | A value of 1 means there is nothing to be done or we did it. |
| 9475 | 0. */ | 9476 | A value of 0 causes redisplay. */ |
| 9476 | 9477 | ||
| 9477 | static int | 9478 | static int |
| 9478 | make_cursor_line_fully_visible (w) | 9479 | make_cursor_line_fully_visible (w) |
| @@ -9490,8 +9491,7 @@ make_cursor_line_fully_visible (w) | |||
| 9490 | matrix = w->desired_matrix; | 9491 | matrix = w->desired_matrix; |
| 9491 | row = MATRIX_ROW (matrix, w->cursor.vpos); | 9492 | row = MATRIX_ROW (matrix, w->cursor.vpos); |
| 9492 | 9493 | ||
| 9493 | /* If the cursor row is not partially visible, there's nothing | 9494 | /* If the cursor row is not partially visible, there's nothing to do. */ |
| 9494 | to do. */ | ||
| 9495 | if (!MATRIX_ROW_PARTIALLY_VISIBLE_P (row)) | 9495 | if (!MATRIX_ROW_PARTIALLY_VISIBLE_P (row)) |
| 9496 | return 1; | 9496 | return 1; |
| 9497 | 9497 | ||