[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Obtain X / HPOS with move_it_to at eol when buffer-display-table lin
Re: Obtain X / HPOS with move_it_to at eol when buffer-display-table line-feed
Thu, 31 Aug 2017 19:17:24 +0300
> Date: Thu, 31 Aug 2017 09:07:46 -0700
> From: Keith David Bershatsky <address@hidden>
> Cc: address@hidden
> The argument of it.last_visible_x is important for the very last line of the
> visible window, or else IT will not continue looking for POS until it reaches
> the window-end.
If you mean the case of the last line not ending in a newline, then
you could use window-end instead, I guess.
Anyway, you may find it useful to look at the code in
move-point-visually, there's a loop there starting at line 22660 of
xdisp.c which solves a similar problem.