comparison src/xdisp.c @ 16463:c6a338fd1938

(decode_mode_spec): In the `L' case, remove a buffer from base_line_pos if window has switched buffers.
author Richard M. Stallman <rms@gnu.org>
date Sat, 26 Oct 1996 16:00:39 +0000
parents 9a25cfded05a
children 2337ed73b33e
comparison
equal deleted inserted replaced
16462:de67834f456d 16463:c6a338fd1938
3757 3757
3758 /* If we decided that this buffer isn't suitable for line numbers, 3758 /* If we decided that this buffer isn't suitable for line numbers,
3759 don't forget that too fast. */ 3759 don't forget that too fast. */
3760 if (EQ (w->base_line_pos, w->buffer)) 3760 if (EQ (w->base_line_pos, w->buffer))
3761 goto no_value; 3761 goto no_value;
3762 /* But do forget it, if the window shows a different buffer now. */
3763 else if (BUFFERP (w->base_line_pos))
3764 w->base_line_pos = Qnil;
3762 3765
3763 /* If the buffer is very big, don't waste time. */ 3766 /* If the buffer is very big, don't waste time. */
3764 if (BUF_ZV (b) - BUF_BEGV (b) > line_number_display_limit) 3767 if (BUF_ZV (b) - BUF_BEGV (b) > line_number_display_limit)
3765 { 3768 {
3766 w->base_line_pos = Qnil; 3769 w->base_line_pos = Qnil;