[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master a20f4f0: Fix indentation when display-line-numbers
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] master a20f4f0: Fix indentation when display-line-numbers is non-nil |
Date: |
Tue, 18 Jul 2017 10:26:41 -0400 (EDT) |
branch: master
commit a20f4f02c69544fdc23be9b61bad3387476e102d
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
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)
---
src/xdisp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/xdisp.c b/src/xdisp.c
index 2aceb89..a3bc5a5 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master a20f4f0: Fix indentation when display-line-numbers is non-nil,
Eli Zaretskii <=