]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix indentation when display-line-numbers is non-nil
authorEli Zaretskii <eliz@gnu.org>
Tue, 18 Jul 2017 14:25:30 +0000 (17:25 +0300)
committerEli Zaretskii <eliz@gnu.org>
Tue, 18 Jul 2017 14:25:30 +0000 (17:25 +0300)
* src/xdisp.c (x_produce_glyphs): Fix a typo in deciding whether
to go one more tab stop to display a TAB.  (Bug#27743)

src/xdisp.c

index 2aceb89c0036203fb670d164a516e68a4ae28683..a3bc5a5fccd78db557f528adbc74b027f4b1f3ec 100644 (file)
@@ -28082,7 +28082,7 @@ x_produce_glyphs (struct it *it)
              /* If the distance from the current position to the next tab
                 stop is less than a space character width, use the
                 tab stop after that.  */
-             if (next_tab_x - x0 < font->space_width)
+             if (next_tab_x - x < font->space_width)
                next_tab_x += tab_width;
              if (!NILP (Vdisplay_line_numbers) && x0 >= it->lnum_pixel_width)
                next_tab_x += (it->lnum_pixel_width