Subject: Re: bug#29002: it.first_visible_x is erroneously 0 while horizontal scrolling.

From: Eli Zaretskii <[email-masked]>
Date: Sun, 29 Oct 2017 13:23:07 +0200

> Date:  Thu, 26 Oct 2017 11:56:08 -0700
> From:  Keith David Bershatsky <[email-masked]>
> Cc:  [email-masked]
> 
> Unfortunately, w->min_hscroll returns a value of 0 in this example.

For the lines other than the current one, you should use
it.first_visible_x, it is simpler.  For the current line, use
w->hscroll.