From: Eli Zaretskii Date: Sun, 11 Feb 2024 13:21:14 +0000 (+0200) Subject: Fix 'min-width' display property in 'buffer-text-pixel-size' X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5e260552e8d42760530bb57024ac4ff8d8e64a16;p=emacs.git Fix 'min-width' display property in 'buffer-text-pixel-size' * 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) --- diff --git a/src/xdisp.c b/src/xdisp.c index 0b8347214c7..6087a25afcc 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -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