1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

Exclude blank columns from value of line-number-display-width

* src/indent.c (Fline_number_display_width): Don't add 2 to the
number of columns we return, to make this consistent with
display-line-number-width.
This commit is contained in:
Eli Zaretskii 2017-07-07 17:30:06 +03:00
parent 4caf65d4de
commit 13786d5e7d

View File

@ -1995,9 +1995,7 @@ line numbers, `line-number'. */)
line_number_display_width (XWINDOW (selected_window), &width, &pixel_width);
if (!NILP (pixelwise))
return make_number (pixel_width);
/* FIXME: The "+ 2" part knows that we add a blank on each side of
the line number when producing glyphs for display. */
return make_number (width + 2);
return make_number (width);
}
/* In window W (derived from WINDOW), return x coordinate for column