1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-07 20:30:32 -08:00

* src/window.c (set_window_buffer): Flush the base_line_number cache

This commit is contained in:
Stefan Monnier 2024-02-04 12:52:01 -05:00
parent 57024e1e93
commit a1aa9028f8

View file

@ -4151,6 +4151,8 @@ set_window_buffer (Lisp_Object window, Lisp_Object buffer,
buffer);
w->start_at_line_beg = false;
w->force_start = false;
/* Flush the base_line cache since it applied to another buffer. */
w->base_line_number = 0;
}
wset_redisplay (w);