changeset 23784:b09b3351386f

(display_text_line): When handling HPOS < 0 after loop, if compute_motion fails to advance at all, don't back it up.
author Richard M. Stallman <rms@gnu.org>
date Mon, 30 Nov 1998 06:35:33 +0000
parents d015bfcaaead
children ef0150f917c9
files src/xdisp.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Sun Nov 29 21:52:25 1998 +0000
+++ b/src/xdisp.c	Mon Nov 30 06:35:33 1998 +0000
@@ -3371,8 +3371,9 @@
          compute_motion may have moved us past the screen position we
          requested, if we hit a multi-column character, or the end of
          the line.  If so, back up.  */
-      if (left_edge->vpos > vpos
-          || left_edge->hpos > 0)
+      if ((left_edge->vpos > vpos
+	   || left_edge->hpos > 0)
+	  && left_edge->bufpos > pos)
         {
           pos = left_edge->bufpos;
 	  pos_byte = left_edge->bytepos;