]> git.eshelyaron.com Git - emacs.git/commitdiff
; * src/dispnew.c (adjust_glyph_matrix): Add comment (bug#77039).
authorEli Zaretskii <eliz@gnu.org>
Mon, 17 Mar 2025 12:16:45 +0000 (14:16 +0200)
committerEshel Yaron <me@eshelyaron.com>
Thu, 20 Mar 2025 10:48:30 +0000 (12:48 +0200)
(cherry picked from commit 4008e664a8dc6d92dda0ba0a5b0c717ab3f72e5c)

src/dispnew.c

index 58817ff014bde022f5349ea88aa3e8795682a5fd..506373c3bf37c7df1bb8da8e2e23744b94c6fd5e 100644 (file)
@@ -506,6 +506,8 @@ adjust_glyph_matrix (struct window *w, struct glyph_matrix *matrix, int x, int y
              row->glyphs[LEFT_MARGIN_AREA]
                = xnrealloc (row->glyphs[LEFT_MARGIN_AREA],
                             dim.width, sizeof (struct glyph));
+             /* We actually need to clear only the 'frame' member, but
+                 it's easier to clear everything.  */
              memset (row->glyphs[LEFT_MARGIN_AREA], 0,
                      dim.width * sizeof (struct glyph));