[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs-26 3673770 2/2: Fix vertical-motion with 'visual' li
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] emacs-26 3673770 2/2: Fix vertical-motion with 'visual' line-number display |
Date: |
Mon, 18 Jun 2018 12:40:07 -0400 (EDT) |
branch: emacs-26
commit 36737705b451ad4c765baa5789e3ceb752ee07a3
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>
Fix vertical-motion with 'visual' line-number display
* src/indent.c (Fvertical_motion): Don't exempt 'visual' sty;e of
line-number display from X coordinate adjustments. (Bug#31875)
---
src/indent.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/indent.c b/src/indent.c
index bcffa0d..9c751bc 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -2147,8 +2147,7 @@ whether or not it is currently displayed in some window.
*/)
will sometimes err by one column. */
int lnum_width = 0;
int lnum_pixel_width = 0;
- if (!NILP (Vdisplay_line_numbers)
- && !EQ (Vdisplay_line_numbers, Qvisual))
+ if (!NILP (Vdisplay_line_numbers))
line_number_display_width (w, &lnum_width, &lnum_pixel_width);
SET_TEXT_POS (pt, PT, PT_BYTE);
itdata = bidi_shelve_cache ();