aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorStefan Monnier2024-02-04 12:52:01 -0500
committerStefan Monnier2024-02-04 12:52:01 -0500
commita1aa9028f83e5d3da71bdb5877d8baa5d6c1e98a (patch)
tree295225260ff28f4eb2ecb59520e00d3386292651 /src
parent57024e1e9314501b103a4d36b9b166761a2ad756 (diff)
downloademacs-a1aa9028f83e5d3da71bdb5877d8baa5d6c1e98a.tar.gz
emacs-a1aa9028f83e5d3da71bdb5877d8baa5d6c1e98a.zip
* src/window.c (set_window_buffer): Flush the `base_line_number` cache
Diffstat (limited to 'src')
-rw-r--r--src/window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c
index 915f591221d..565ad00804f 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4151,6 +4151,8 @@ set_window_buffer (Lisp_Object window, Lisp_Object buffer,
4151 buffer); 4151 buffer);
4152 w->start_at_line_beg = false; 4152 w->start_at_line_beg = false;
4153 w->force_start = false; 4153 w->force_start = false;
4154 /* Flush the base_line cache since it applied to another buffer. */
4155 w->base_line_number = 0;
4154 } 4156 }
4155 4157
4156 wset_redisplay (w); 4158 wset_redisplay (w);