[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to calculate X when dealing with truncate-lines non-nil.
From: |
Keith David Bershatsky |
Subject: |
Re: How to calculate X when dealing with truncate-lines non-nil. |
Date: |
Thu, 28 Sep 2017 10:31:58 -0700 |
I believe this issue is resolvable mathematically as follows:
int x;
if (it.line_wrap == TRUNCATE)
x = it.current_x - it.first_visible_x;
else
x = it.current_x;
Unless anyone sees a problem with this method, the issue is resolved.
Thanks,
Keith