From 58827478fc30575ca922952938210984be0efea1 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Sat, 22 Apr 2000 14:12:30 +0000 Subject: [PATCH] (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. --- src/ChangeLog | 6 ++++++ src/dispnew.c | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) 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; } -- 2.39.5