]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix 'min-width' display property in 'buffer-text-pixel-size'
authorEli Zaretskii <eliz@gnu.org>
Sun, 11 Feb 2024 13:21:14 +0000 (15:21 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 11 Feb 2024 16:32:57 +0000 (17:32 +0100)
* src/xdisp.c (display_min_width): Don't return without doing
anything when called from the move_it_* functions.  This is needed
to have functions that simulate display layout handle the
min-width display property correctly.  (Bug#68374)

(cherry picked from commit 67486ab4158655dd8bfe0ddf7dabadc6dd21a3c1)

src/xdisp.c

index 0b8347214c71c7c51da234eff96caf55948108cb..6087a25afcc03a0512b8751a7fd3405d6b1fe3db 100644 (file)
@@ -5612,9 +5612,6 @@ display_min_width (struct it *it, ptrdiff_t bufpos,
   if (!NILP (it->min_width_property)
       && !EQ (width_spec, it->min_width_property))
     {
-      if (!it->glyph_row)
-       return;
-
       /* When called from display_string (i.e., the mode line),
         we're being called with a string as the object, and we
         may be called with many sub-strings belonging to the same