aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab1998-02-27 09:38:41 +0000
committerAndreas Schwab1998-02-27 09:38:41 +0000
commitef3af330d2be1b94197db69cb69694fcdf1954e2 (patch)
tree4186c1d0868d41a694e2a7d70953326718b17fbb
parentf980ec39f67fe2fb5d660086344d8d10b18eff47 (diff)
downloademacs-ef3af330d2be1b94197db69cb69694fcdf1954e2.tar.gz
emacs-ef3af330d2be1b94197db69cb69694fcdf1954e2.zip
(compute_motion): If we just moved over a continuation
return contin_hpos as prevhpos.
-rw-r--r--src/indent.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c
index 733272ee97b..265fd07f776 100644
--- a/src/indent.c
+++ b/src/indent.c
@@ -1467,7 +1467,10 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width,
1467 val_compute_motion.bytepos = pos_byte; 1467 val_compute_motion.bytepos = pos_byte;
1468 val_compute_motion.hpos = hpos; 1468 val_compute_motion.hpos = hpos;
1469 val_compute_motion.vpos = vpos; 1469 val_compute_motion.vpos = vpos;
1470 val_compute_motion.prevhpos = prev_hpos; 1470 if (contin_hpos && prev_hpos == 0)
1471 val_compute_motion.prevhpos = contin_hpos;
1472 else
1473 val_compute_motion.prevhpos = prev_hpos;
1471 /* We alalways handle all of them here; none of them remain to do. */ 1474 /* We alalways handle all of them here; none of them remain to do. */
1472 val_compute_motion.ovstring_chars_done = 0; 1475 val_compute_motion.ovstring_chars_done = 0;
1473 1476