diff options
author | Eli Zaretskii <eliz@gnu.org> | 2017-07-07 17:30:06 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2017-07-07 17:30:06 +0300 |
commit | 13786d5e7d0aa0a37d7f81d1a1b82eddd3472796 (patch) | |
tree | 8b316edd36a8005b87e0c1cb8240e7e04e0aa215 | |
parent | 4caf65d4de591089c82ccf542a31ea5009a3c717 (diff) | |
download | emacs-13786d5e7d0aa0a37d7f81d1a1b82eddd3472796.tar.gz |
Exclude blank columns from value of line-number-display-widthscratch/line-numbers
* 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.
-rw-r--r-- | src/indent.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/indent.c b/src/indent.c index ba936509934..4c6dacd2042 100644 --- a/src/indent.c +++ b/src/indent.c @@ -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 |