changeset 56548:18be5704dc1b

(move_it_in_display_line_to): If overflow-newline-into-fringe is enabled, return MOVE_LINE_CONTINUED rather than MOVE_POS_MATCH_OR_ZV if target position is at end of display line but char is not a newline.
author Kim F. Storm <storm@cua.dk>
date Sun, 25 Jul 2004 22:15:03 +0000
parents 09036eafe695
children 7e0e6be19969
files src/xdisp.c
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Sun Jul 25 22:14:29 2004 +0000
+++ b/src/xdisp.c	Sun Jul 25 22:15:03 2004 +0000
@@ -5738,12 +5738,19 @@
 #ifdef HAVE_WINDOW_SYSTEM
 			  if (IT_OVERFLOW_NEWLINE_INTO_FRINGE (it))
 			    {
-			      if (!get_next_display_element (it)
-				  || BUFFER_POS_REACHED_P ())
+			      if (!get_next_display_element (it))
 				{
 				  result = MOVE_POS_MATCH_OR_ZV;
 				  break;
 				}
+			      if (BUFFER_POS_REACHED_P ())
+				{
+				  if (ITERATOR_AT_END_OF_LINE_P (it))
+				    result = MOVE_POS_MATCH_OR_ZV;
+				  else
+				    result = MOVE_LINE_CONTINUED;
+				  break;
+				}
 			      if (ITERATOR_AT_END_OF_LINE_P (it))
 				{
 				  result = MOVE_NEWLINE_OR_CR;