]> git.eshelyaron.com Git - emacs.git/commitdiff
(compute_motion): If we just moved over a continuation
authorAndreas Schwab <schwab@suse.de>
Fri, 27 Feb 1998 09:38:41 +0000 (09:38 +0000)
committerAndreas Schwab <schwab@suse.de>
Fri, 27 Feb 1998 09:38:41 +0000 (09:38 +0000)
return contin_hpos as prevhpos.

src/indent.c

index 733272ee97b00271e036fefd14d74266fa37efe9..265fd07f776bfd7caf87b140f42fe491bdd6f48e 100644 (file)
@@ -1467,7 +1467,10 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width,
   val_compute_motion.bytepos = pos_byte;
   val_compute_motion.hpos = hpos;
   val_compute_motion.vpos = vpos;
-  val_compute_motion.prevhpos = prev_hpos;
+  if (contin_hpos && prev_hpos == 0)
+    val_compute_motion.prevhpos = contin_hpos;
+  else
+    val_compute_motion.prevhpos = prev_hpos;
   /* We alalways handle all of them here; none of them remain to do.  */
   val_compute_motion.ovstring_chars_done = 0;