diff options
| author | Eli Zaretskii | 2017-07-07 17:30:06 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2017-07-07 17:30:06 +0300 |
| commit | 13786d5e7d0aa0a37d7f81d1a1b82eddd3472796 (patch) | |
| tree | 8b316edd36a8005b87e0c1cb8240e7e04e0aa215 /src | |
| parent | 4caf65d4de591089c82ccf542a31ea5009a3c717 (diff) | |
| download | emacs-13786d5e7d0aa0a37d7f81d1a1b82eddd3472796.tar.gz emacs-13786d5e7d0aa0a37d7f81d1a1b82eddd3472796.zip | |
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.
Diffstat (limited to 'src')
| -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'. */) | |||
| 1995 | line_number_display_width (XWINDOW (selected_window), &width, &pixel_width); | 1995 | line_number_display_width (XWINDOW (selected_window), &width, &pixel_width); |
| 1996 | if (!NILP (pixelwise)) | 1996 | if (!NILP (pixelwise)) |
| 1997 | return make_number (pixel_width); | 1997 | return make_number (pixel_width); |
| 1998 | /* FIXME: The "+ 2" part knows that we add a blank on each side of | 1998 | return make_number (width); |
| 1999 | the line number when producing glyphs for display. */ | ||
| 2000 | return make_number (width + 2); | ||
| 2001 | } | 1999 | } |
| 2002 | 2000 | ||
| 2003 | /* In window W (derived from WINDOW), return x coordinate for column | 2001 | /* In window W (derived from WINDOW), return x coordinate for column |