summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>1998-08-10 15:34:32 +0000
committerEli Zaretskii <eliz@gnu.org>1998-08-10 15:34:32 +0000
commit33d1d9adaaa1e52289f924f29124729e109824cc (patch)
tree567574dad9f5616b5d5033c64028f8054fb98f66
parentc81c929a980b32c2f75acf134bf590d675635d24 (diff)
downloademacs-33d1d9adaaa1e52289f924f29124729e109824cc.tar.gz
(IT_cmgoto): In the echo area, only put the cursor at
the end of text if it is beyond the displayed text end.
-rw-r--r--src/msdos.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/msdos.c b/src/msdos.c
index 6875f87b90f..31c3cc17850 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -772,12 +772,18 @@ IT_cmgoto (FRAME_PTR f)
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