diff options
| author | Kim F. Storm | 2002-05-22 21:18:25 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2002-05-22 21:18:25 +0000 |
| commit | 6065f9e2764766f90f95b9fc9d5fd2cf2eea0be9 (patch) | |
| tree | af5ca2cc7c4b02e4bb3a56d7f90692d02921eb47 /src/xterm.c | |
| parent | 39bb59006c1072f634ac9fda7e7fc3b41cda696d (diff) | |
| download | emacs-6065f9e2764766f90f95b9fc9d5fd2cf2eea0be9.tar.gz emacs-6065f9e2764766f90f95b9fc9d5fd2cf2eea0be9.zip | |
(x_write_glyphs): Clear phys_cursor_on_p if current
phys_cursor's hpos is overwritten. This is still not completely
correct, as it doesn't really make sense to use hpos at all to
get the cursor glyph (as that is relative to the width of the
characters on the line, which may have changed during the update).
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/xterm.c b/src/xterm.c index c87d8981daf..c98d278c771 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -5331,6 +5331,14 @@ x_write_glyphs (start, len) | |||
| 5331 | hpos, hpos + len, | 5331 | hpos, hpos + len, |
| 5332 | DRAW_NORMAL_TEXT, 0); | 5332 | DRAW_NORMAL_TEXT, 0); |
| 5333 | 5333 | ||
| 5334 | /* Invalidate old phys cursor if the glyph at its hpos is redrawn. */ | ||
| 5335 | if (updated_area == TEXT_AREA | ||
| 5336 | && updated_window->phys_cursor_on_p | ||
| 5337 | && updated_window->phys_cursor.vpos == output_cursor.vpos | ||
| 5338 | && updated_window->phys_cursor.hpos >= hpos | ||
| 5339 | && updated_window->phys_cursor.hpos < hpos + len) | ||
| 5340 | updated_window->phys_cursor_on_p = 0; | ||
| 5341 | |||
| 5334 | UNBLOCK_INPUT; | 5342 | UNBLOCK_INPUT; |
| 5335 | 5343 | ||
| 5336 | /* Advance the output cursor. */ | 5344 | /* Advance the output cursor. */ |