Mercurial > emacs
comparison src/msdos.c @ 22992:9b39197e9ecd
(IT_cmgoto): In the echo area, only put the cursor at
the end of text if it is beyond the displayed text end.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Mon, 10 Aug 1998 15:34:32 +0000 |
parents | c19803db4a93 |
children | fe3128dafc96 |
comparison
equal
deleted
inserted
replaced
22991:313091cd2751 | 22992:9b39197e9ecd |
---|---|
770 { | 770 { |
771 /* Only set the cursor to where it should be if the display is | 771 /* Only set the cursor to where it should be if the display is |
772 already in sync with the window contents. */ | 772 already in sync with the window contents. */ |
773 int update_cursor_pos = MODIFF == unchanged_modified; | 773 int update_cursor_pos = MODIFF == unchanged_modified; |
774 | 774 |
775 /* If we are in the echo area, put the cursor at the end of text. */ | 775 /* If we are in the echo area, and the cursor is beyond the end of |
776 the text, put the cursor at the end of text. */ | |
776 if (!update_cursor_pos | 777 if (!update_cursor_pos |
777 && XFASTINT (XWINDOW (FRAME_MINIBUF_WINDOW (f))->top) <= new_pos_Y) | 778 && XFASTINT (XWINDOW (FRAME_MINIBUF_WINDOW (f))->top) <= new_pos_Y) |
778 { | 779 { |
779 new_pos_X = FRAME_DESIRED_GLYPHS (f)->used[new_pos_Y]; | 780 int tem_X = FRAME_DESIRED_GLYPHS (f)->used[new_pos_Y]; |
780 update_cursor_pos = 1; | 781 |
782 if (current_pos_X > tem_X) | |
783 { | |
784 new_pos_X = tem_X; | |
785 update_cursor_pos = 1; | |
786 } | |
781 } | 787 } |
782 | 788 |
783 if (update_cursor_pos | 789 if (update_cursor_pos |
784 && (current_pos_X != new_pos_X || current_pos_Y != new_pos_Y)) | 790 && (current_pos_X != new_pos_X || current_pos_Y != new_pos_Y)) |
785 { | 791 { |