changeset 98211:bc06a22accf3

(Fvertical_motion): Use position reported by iterator instead of PT for determining screen motion (bug#943).
author Chong Yidong <cyd@stupidchicken.com>
date Wed, 17 Sep 2008 20:29:04 +0000
parents 2b86022634a8
children 3b2bee2b95a4
files src/indent.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/indent.c	Wed Sep 17 20:28:53 2008 +0000
+++ b/src/indent.c	Wed Sep 17 20:29:04 2008 +0000
@@ -2109,7 +2109,7 @@
 	}
       else
 	{
-	  if (IT_CHARPOS (it) > PT)
+	  if (IT_CHARPOS (it) > it_start)
 	    {
 	      /* IT may move too far if truncate-lines is on and PT
 		 lies beyond the right margin.  In that case,
@@ -2135,7 +2135,7 @@
 		 from the last line that it occupies.  */
 	      if (PT < ZV)
 		{
-		  while (IT_CHARPOS (it) <= PT)
+		  while (IT_CHARPOS (it) <= it_start)
 		    {
 		      it.vpos = 0;
 		      move_it_by_lines (&it, 1, 0);