From: Gerd Moellmann Date: Sat, 22 Apr 2000 14:12:30 +0000 (+0000) Subject: (update_frame_line): When writing a whole line, make X-Git-Tag: emacs-pretest-21.0.90~4166 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=58827478fc30575ca922952938210984be0efea1;p=emacs.git (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 --git a/src/ChangeLog b/src/ChangeLog index 6597ac66549..b04c003a479 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2000-04-22 Gerd Moellmann + + * dispnew.c (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. + 2000-04-21 Gerd Moellmann * lisp.h (struct Lisp_Buffer_Cons): Remove. diff --git a/src/dispnew.c b/src/dispnew.c index 1936501d947..7bd57182b3c 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -4977,7 +4977,11 @@ update_frame_line (frame, vpos) 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; }