]> git.eshelyaron.com Git - emacs.git/commit
Fix hscrolling of :align-to when display-line-numbers is in effect
authorEli Zaretskii <eliz@gnu.org>
Wed, 29 Jun 2022 17:15:36 +0000 (20:15 +0300)
committerEli Zaretskii <eliz@gnu.org>
Wed, 29 Jun 2022 17:15:36 +0000 (20:15 +0300)
commitfb3d582e7ba595b7680e2c2adf22c7ab699e5792
tree7897673de05a51a3058c9fdf3987181805e470c3
parentaee101af911655ff3dd7a4e032ee5366ce533578
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)
src/dispextern.h
src/xdisp.c