diff options
| author | Andreas Schwab | 1998-02-27 09:38:41 +0000 |
|---|---|---|
| committer | Andreas Schwab | 1998-02-27 09:38:41 +0000 |
| commit | ef3af330d2be1b94197db69cb69694fcdf1954e2 (patch) | |
| tree | 4186c1d0868d41a694e2a7d70953326718b17fbb /src | |
| parent | f980ec39f67fe2fb5d660086344d8d10b18eff47 (diff) | |
| download | emacs-ef3af330d2be1b94197db69cb69694fcdf1954e2.tar.gz emacs-ef3af330d2be1b94197db69cb69694fcdf1954e2.zip | |
(compute_motion): If we just moved over a continuation
return contin_hpos as prevhpos.
Diffstat (limited to 'src')
| -rw-r--r-- | src/indent.c | 5 |
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 | ||