Fix TAB display when the line-number face uses a smaller/larger font
commitdfe1c820d3dca6673aba911a4a37969bbabd0486
authorEli Zaretskii <eliz@gnu.org>
Fri, 30 Jun 2017 08:43:49 +0000 (30 11:43 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 30 Jun 2017 08:43:49 +0000 (30 11:43 +0300)
tree9a4e2e8f8b0e245ff29617dcd1efd21ff9b9df33
parent5b9b49492b9c024bd07b83ef6e5d095af6b8fdd0
Fix TAB display when the line-number face uses a smaller/larger font

* src/dispextern.h (struct it): New member lnum_pixel_width.
* src/xdisp.c (maybe_produce_line_number): Compute the width of
the line-number display in pixels.
(x_produce_glyphs): Use it->lnum_pixel_width instead of a kludge
that used it->lnum_width and made assumptions about pixel width.
src/dispextern.h
src/xdisp.c