# HG changeset patch # User Kim F. Storm # Date 1068815055 0 # Node ID 4cb0d5b004e977fbc51946888dcc2a4f3686164d # Parent 641d61df66e739de64b71933af25e9e033dfd63b (update_text_area): Fix redisplay error when hscroll is active and first glyph is only partially visible. diff -r 641d61df66e7 -r 4cb0d5b004e9 src/dispnew.c --- a/src/dispnew.c Fri Nov 14 13:03:47 2003 +0000 +++ b/src/dispnew.c Fri Nov 14 13:04:15 2003 +0000 @@ -4421,7 +4421,7 @@ /* If old row extends to the end of the text area, clear. */ if (i >= desired_row->used[TEXT_AREA]) rif->cursor_to (vpos, i, desired_row->y, - desired_row->x + desired_row->pixel_width); + desired_row->pixel_width); rif->clear_end_of_line (-1); changed_p = 1; } @@ -4433,7 +4433,7 @@ if (i >= desired_row->used[TEXT_AREA]) rif->cursor_to (vpos, i, desired_row->y, - desired_row->x + desired_row->pixel_width); + desired_row->pixel_width); /* If cursor is displayed at the end of the line, make sure it's cleared. Nowadays we don't have a phys_cursor_glyph @@ -4447,7 +4447,7 @@ x = -1; } else - x = current_row->x + current_row->pixel_width; + x = current_row->pixel_width; rif->clear_end_of_line (x); changed_p = 1; }