diff options
| author | Miles Bader | 2000-11-25 02:08:59 +0000 |
|---|---|---|
| committer | Miles Bader | 2000-11-25 02:08:59 +0000 |
| commit | bcfbd63d881c105047c955cd18b064ac1764a7e9 (patch) | |
| tree | f15591cce5cc4be984ccaaea18db24e40982f3e0 /src | |
| parent | a12586671e817cae3321704b264bc76fd692b928 (diff) | |
| download | emacs-bcfbd63d881c105047c955cd18b064ac1764a7e9.tar.gz emacs-bcfbd63d881c105047c955cd18b064ac1764a7e9.zip | |
(compute_motion): Keep pos_byte in sync with pos.
Diffstat (limited to 'src')
| -rw-r--r-- | src/indent.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/indent.c b/src/indent.c index f5f44d93c40..2f0786c7878 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -1171,6 +1171,7 @@ compute_motion (from, fromvpos, fromhpos, did_motion, to, tovpos, tohpos, width, | |||
| 1171 | if (newpos >= to) | 1171 | if (newpos >= to) |
| 1172 | { | 1172 | { |
| 1173 | pos = min (to, newpos); | 1173 | pos = min (to, newpos); |
| 1174 | pos_byte = CHAR_TO_BYTE (pos); | ||
| 1174 | goto after_loop; | 1175 | goto after_loop; |
| 1175 | } | 1176 | } |
| 1176 | 1177 | ||