changeset 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 de67834f456d
children c1f19d8e5b80
files src/xdisp.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Fri Oct 25 04:43:06 1996 +0000
+++ b/src/xdisp.c	Sat Oct 26 16:00:39 1996 +0000
@@ -3759,6 +3759,9 @@
 	   don't forget that too fast.  */
 	if (EQ (w->base_line_pos, w->buffer))
 	  goto no_value;
+	/* But do forget it, if the window shows a different buffer now.  */
+	else if (BUFFERP (w->base_line_pos))
+	  w->base_line_pos = Qnil;
 
 	/* If the buffer is very big, don't waste time.  */
 	if (BUF_ZV (b) - BUF_BEGV (b) > line_number_display_limit)