diff options
| author | Eli Zaretskii | 2017-07-18 17:25:30 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2017-07-18 17:25:30 +0300 |
| commit | a20f4f02c69544fdc23be9b61bad3387476e102d (patch) | |
| tree | d35a0c2b38d009c13964f16b093535c64d621951 /src | |
| parent | 742caff3b80b199020ea3d66b5f162cc43ec6174 (diff) | |
| download | emacs-a20f4f02c69544fdc23be9b61bad3387476e102d.tar.gz emacs-a20f4f02c69544fdc23be9b61bad3387476e102d.zip | |
Fix indentation when display-line-numbers is non-nil
* src/xdisp.c (x_produce_glyphs): Fix a typo in deciding whether
to go one more tab stop to display a TAB. (Bug#27743)
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 2aceb89c003..a3bc5a5fccd 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -28082,7 +28082,7 @@ x_produce_glyphs (struct it *it) | |||
| 28082 | /* If the distance from the current position to the next tab | 28082 | /* If the distance from the current position to the next tab |
| 28083 | stop is less than a space character width, use the | 28083 | stop is less than a space character width, use the |
| 28084 | tab stop after that. */ | 28084 | tab stop after that. */ |
| 28085 | if (next_tab_x - x0 < font->space_width) | 28085 | if (next_tab_x - x < font->space_width) |
| 28086 | next_tab_x += tab_width; | 28086 | next_tab_x += tab_width; |
| 28087 | if (!NILP (Vdisplay_line_numbers) && x0 >= it->lnum_pixel_width) | 28087 | if (!NILP (Vdisplay_line_numbers) && x0 >= it->lnum_pixel_width) |
| 28088 | next_tab_x += (it->lnum_pixel_width | 28088 | next_tab_x += (it->lnum_pixel_width |