# HG changeset patch # User Gerd Moellmann # Date 956412651 0 # Node ID f05d48759416ea420939830cbc608c3335a969ba # Parent bf112ad58dc72c79140b4ac2d3b778546d67c0fe (update_frame_line): When writing a whole line, make sure cursor is in the right row afterwards, otherwise a use of capability `ch' in cmgoto might leave the cursor in the row below. diff -r bf112ad58dc7 -r f05d48759416 src/dispnew.c --- a/src/dispnew.c Fri Apr 21 18:28:45 2000 +0000 +++ b/src/dispnew.c Sat Apr 22 14:10:51 2000 +0000 @@ -4977,7 +4977,11 @@ cursor_to (vpos, nlen); clear_end_of_line (FRAME_WINDOW_WIDTH (frame)); } - + else + /* Make sure we are in the right row, otherwise cursor movement + with cmgoto might use `ch' in the wrong row. */ + cursor_to (vpos, 0); + make_current (desired_matrix, current_matrix, vpos); return; }