diff options
author | Eli Zaretskii <eliz@gnu.org> | 2022-06-29 20:15:36 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2022-06-29 20:15:36 +0300 |
commit | fb3d582e7ba595b7680e2c2adf22c7ab699e5792 (patch) | |
tree | 7897673de05a51a3058c9fdf3987181805e470c3 /src/dispextern.h | |
parent | aee101af911655ff3dd7a4e032ee5366ce533578 (diff) |
Fix hscrolling of :align-to when display-line-numbers is in effect
* src/dispextern.h (struct it): Rename 'tab_offset' member to
'stretch_adjust'.
* src/xdisp.c (gui_produce_glyphs, produce_stretch_glyph)
(display_line): All users of 'tab_offset' changed.
(produce_stretch_glyph): Fix calculation of ':align-to' when
line numbers are displayed and the window is hscrolled.
(calc_pixel_width_or_height): Fix calculation of width of 'space'
display property when 'display-line-numbers' is turned on, but the
line number was not yet produced for the current glyph row.
(Bug#56176)
Diffstat (limited to 'src/dispextern.h')
-rw-r--r-- | src/dispextern.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/dispextern.h b/src/dispextern.h index 9dec8b7d129..ca7834dec55 100644 --- a/src/dispextern.h +++ b/src/dispextern.h @@ -2742,11 +2742,11 @@ struct it /* The line number of point's line, or zero if not computed yet. */ ptrdiff_t pt_lnum; - /* Number of pixels to offset tab stops due to width fixup of the - first glyph that crosses first_visible_x. This is only needed on - GUI frames, only when display-line-numbers is in effect, and only - in hscrolled windows. */ - int tab_offset; + /* Number of pixels to adjust tab stops and stretch glyphs due to + width fixup of the first stretch glyph that crosses first_visible_x. + This is only needed on GUI frames, only when display-line-numbers + is in effect, and only in hscrolled windows. */ + int stretch_adjust; /* Left fringe bitmap number (enum fringe_bitmap_type). */ unsigned left_user_fringe_bitmap : FRINGE_ID_BITS; |