diff options
author | Richard M. Stallman <[email protected]> | 1996-10-26 16:00:39 +0000 |
---|---|---|
committer | Richard M. Stallman <[email protected]> | 1996-10-26 16:00:39 +0000 |
commit | 5300fd39c3e58e27148b62ed2a1190f5aff95de9 (patch) | |
tree | 4a9bcf3b67a8a18a8b47df5cf63a5e6149134b06 /src | |
parent | 3296453b8ba3432a0409c1b26c0741235d523bd9 (diff) |
(decode_mode_spec): In the `L' case,
remove a buffer from base_line_pos if window has switched buffers.
Diffstat (limited to 'src')
-rw-r--r-- | src/xdisp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index c150277ac3..dc1148ecba 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) |