summaryrefslogtreecommitdiff
path: root/src/dispnew.c
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2003-11-14 13:04:15 +0000
committerKim F. Storm <storm@cua.dk>2003-11-14 13:04:15 +0000
commit23228cfa9487fda005e20b8726ad0abffe7f53a0 (patch)
tree049279d7ad045d1507738c7e2881938cd3783e4e /src/dispnew.c
parent77e688fa301751fc2570b44faec03e9d957d8891 (diff)
downloademacs-23228cfa9487fda005e20b8726ad0abffe7f53a0.tar.gz
emacs-23228cfa9487fda005e20b8726ad0abffe7f53a0.tar.bz2
emacs-23228cfa9487fda005e20b8726ad0abffe7f53a0.zip
(update_text_area): Fix redisplay error when hscroll
is active and first glyph is only partially visible.
Diffstat (limited to 'src/dispnew.c')
-rw-r--r--src/dispnew.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dispnew.c b/src/dispnew.c
index 535ab474373..3bce256f2db 100644
--- a/src/dispnew.c
+++ b/src/dispnew.c
@@ -4421,7 +4421,7 @@ update_text_area (w, vpos)
/* 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 @@ update_text_area (w, vpos)
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 @@ update_text_area (w, vpos)
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;
}