]> git.eshelyaron.com Git - emacs.git/commitdiff
(compute_motion): Keep pos_byte in sync with pos.
authorMiles Bader <miles@gnu.org>
Sat, 25 Nov 2000 02:08:59 +0000 (02:08 +0000)
committerMiles Bader <miles@gnu.org>
Sat, 25 Nov 2000 02:08:59 +0000 (02:08 +0000)
src/indent.c

index f5f44d93c4049ac582775be9fb8a98bc9b5cd162..2f0786c7878983d58e329049e8659963f0dcb21a 100644 (file)
@@ -1171,6 +1171,7 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width,
          if (newpos >= to)
            {
              pos = min (to, newpos);
+             pos_byte = CHAR_TO_BYTE (pos);
              goto after_loop;
            }