{
bool moved_forward = false;
- if (/* IT->hpos == 0 means the very first glyph
- doesn't fit on the line, e.g. a wide
- image. */
- it->hpos == 0
+ if (/* IT->hpos == 0 (modulo line-number width) means
+ the very first glyph doesn't fit on the line,
+ e.g., a wide image. */
+ it->hpos == 0 + (it->lnum_width ? it->lnum_width + 2 : 0)
|| (new_x == it->last_visible_x
&& FRAME_WINDOW_P (it->f)))
{
{
/* End of a continued line. */
- if (it->hpos == 0
+ if (it->hpos == 0 + (it->lnum_width ? it->lnum_width + 2 : 0)
|| (new_x == it->last_visible_x
&& FRAME_WINDOW_P (it->f)
&& (row->reversed_p