mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-03 10:31:37 -08:00
(display_text_line): When handling HPOS < 0 after loop,
if compute_motion fails to advance at all, don't back it up.
This commit is contained in:
parent
acafa9cfdc
commit
ffa286a2aa
1 changed files with 3 additions and 2 deletions
|
|
@ -3371,8 +3371,9 @@ display_text_line (w, start, start_byte, vpos, hpos, taboffset, ovstr_done)
|
|||
compute_motion may have moved us past the screen position we
|
||||
requested, if we hit a multi-column character, or the end of
|
||||
the line. If so, back up. */
|
||||
if (left_edge->vpos > vpos
|
||||
|| left_edge->hpos > 0)
|
||||
if ((left_edge->vpos > vpos
|
||||
|| left_edge->hpos > 0)
|
||||
&& left_edge->bufpos > pos)
|
||||
{
|
||||
pos = left_edge->bufpos;
|
||||
pos_byte = left_edge->bytepos;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue