]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/window.c (set_window_buffer): Flush the `base_line_number` cache
authorStefan Monnier <monnier@iro.umontreal.ca>
Sun, 4 Feb 2024 17:52:01 +0000 (12:52 -0500)
committerEshel Yaron <me@eshelyaron.com>
Wed, 7 Feb 2024 10:50:43 +0000 (11:50 +0100)
(cherry picked from commit a1aa9028f83e5d3da71bdb5877d8baa5d6c1e98a)

src/window.c

index 915f591221d0dbcf50e31a4255f17d8990bc84ed..565ad00804f58cf2a5c4148d8acce7f5ddc1e43f 100644 (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);