Partial fix of hscroll of truncated lines with line numbers
commit13cc19a0a3685ceade4a5a560475ee47165f3bbc
authorEli Zaretskii <eliz@gnu.org>
Sat, 24 Jun 2017 16:03:39 +0000 (24 19:03 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 24 Jun 2017 16:03:39 +0000 (24 19:03 +0300)
tree66641dcca207c14e093d7b3933f0b7090b32953e
parent6e18841b17c9b7ca9f38b923db4195cade05da2e
Partial fix of hscroll of truncated lines with line numbers

* src/xdisp.c (x_produce_glyphs, hscroll_window_tree): Adjust
hscroll calculations to line-number display.
* src/term.c (produce_glyphs): Adjust tab stop to window's
hscroll.  These two changes fix horizontal scrolling when line
numbers are displayed.  But there's still a bug: the horizontal
shift of lines that begin with a TAB is different from the rest.
* src/xdisp.c (move_it_in_display_line_to): Call
should_produce_line_number to determine whether a line number
should be produced for this screen line.
src/term.c
src/xdisp.c