summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1996-10-26 16:00:39 +0000
committerRichard M. Stallman <rms@gnu.org>1996-10-26 16:00:39 +0000
commita502d055418cc3f1bd6643a87d81550fa7973928 (patch)
tree79873968a913bd21693bdc8438b0d4c0109d6f64
parenta776ab0439c5f88e48642651ea9d604b90807a4e (diff)
downloademacs-a502d055418cc3f1bd6643a87d81550fa7973928.tar.gz
(decode_mode_spec): In the `L' case,
remove a buffer from base_line_pos if window has switched buffers.
-rw-r--r--src/xdisp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c
index c150277ac3d..dc1148ecbaf 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -3759,6 +3759,9 @@ decode_mode_spec (w, c, spec_width, maxwidth)
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)