# HG changeset patch # User Kim F. Storm # Date 1022102265 0 # Node ID adebb58b0c5ef0e6a07b8aeca9c91c0992abb010 # Parent 440fa9418f60f50e05302388f2eb5b0a74dbc303 (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). diff -r 440fa9418f60 -r adebb58b0c5e src/xterm.c --- a/src/xterm.c Wed May 22 21:16:51 2002 +0000 +++ b/src/xterm.c Wed May 22 21:17:45 2002 +0000 @@ -5331,6 +5331,14 @@ hpos, hpos + len, DRAW_NORMAL_TEXT, 0); + /* Invalidate old phys cursor if the glyph at its hpos is redrawn. */ + if (updated_area == TEXT_AREA + && updated_window->phys_cursor_on_p + && updated_window->phys_cursor.vpos == output_cursor.vpos + && updated_window->phys_cursor.hpos >= hpos + && updated_window->phys_cursor.hpos < hpos + len) + updated_window->phys_cursor_on_p = 0; + UNBLOCK_INPUT; /* Advance the output cursor. */