Mercurial > emacs
changeset 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 | bf112ad58dc7 |
children | ad1d1ff69b3e |
files | src/dispnew.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
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; }