changeset 20985:020b0eade8c5

(compute_motion): If we just moved over a continuation return contin_hpos as prevhpos.
author Andreas Schwab <schwab@suse.de>
date Fri, 27 Feb 1998 09:38:41 +0000
parents f27355b19aba
children 72fa617ce5e2
files src/indent.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/indent.c	Wed Feb 25 23:26:45 1998 +0000
+++ b/src/indent.c	Fri Feb 27 09:38:41 1998 +0000
@@ -1467,7 +1467,10 @@
   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;