(move_it_to): Correctly count tab glyphs for continued lines ending in
tab.
This commit is contained in:
parent
b88548b120
commit
2a95eced24
1 changed files with 6 additions and 1 deletions
|
@ -6828,7 +6828,12 @@ move_it_to (it, to_charpos, to_x, to_y, to_vpos, op)
|
|||
break;
|
||||
|
||||
case MOVE_LINE_CONTINUED:
|
||||
it->continuation_lines_width += it->current_x;
|
||||
/* For continued lines ending in a tab, some of the glyphs
|
||||
associated with the tab are displayed on the current
|
||||
line. Since it->current_x does not include these glyphs,
|
||||
we use it->last_visible_x instead. */
|
||||
it->continuation_lines_width +=
|
||||
(it->c == '\t') ? it->last_visible_x : it->current_x;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue