# HG changeset patch # User Eli Zaretskii # Date 902763272 0 # Node ID 9b39197e9ecd25a8397d6599345ccea013f6428e # Parent 313091cd2751b2ab6bc2042f2eebbdf980118dc3 (IT_cmgoto): In the echo area, only put the cursor at the end of text if it is beyond the displayed text end. diff -r 313091cd2751 -r 9b39197e9ecd src/msdos.c --- a/src/msdos.c Mon Aug 10 13:53:02 1998 +0000 +++ b/src/msdos.c Mon Aug 10 15:34:32 1998 +0000 @@ -772,12 +772,18 @@ already in sync with the window contents. */ int update_cursor_pos = MODIFF == unchanged_modified; - /* If we are in the echo area, put the cursor at the end of text. */ + /* If we are in the echo area, and the cursor is beyond the end of + the text, put the cursor at the end of text. */ if (!update_cursor_pos && XFASTINT (XWINDOW (FRAME_MINIBUF_WINDOW (f))->top) <= new_pos_Y) { - new_pos_X = FRAME_DESIRED_GLYPHS (f)->used[new_pos_Y]; - update_cursor_pos = 1; + int tem_X = FRAME_DESIRED_GLYPHS (f)->used[new_pos_Y]; + + if (current_pos_X > tem_X) + { + new_pos_X = tem_X; + update_cursor_pos = 1; + } } if (update_cursor_pos