Mercurial > emacs
diff src/dispnew.c @ 28682:f05d48759416
(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.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Sat, 22 Apr 2000 14:10:51 +0000 |
parents | b6f06a755c7d |
children | 4e2497e6757e |
line wrap: on
line diff
--- 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; }