diff options
| author | Eli Zaretskii | 2011-09-12 07:51:27 -0400 |
|---|---|---|
| committer | Eli Zaretskii | 2011-09-12 07:51:27 -0400 |
| commit | fa819fed539dd8de122709d94fe28ed8f4901e4a (patch) | |
| tree | 74356d6eb3172224fd7e66a82c239e1d830f61fa /src/indent.c | |
| parent | b0415a0397edf20fa56d7812d14418cd1bc12273 (diff) | |
| download | emacs-fa819fed539dd8de122709d94fe28ed8f4901e4a.tar.gz emacs-fa819fed539dd8de122709d94fe28ed8f4901e4a.zip | |
Fix bug #2496 with column counting in presence of display tables.
src/indent.c (compute_motion): Process display vector front to back
rather than the other way around.
Diffstat (limited to 'src/indent.c')
| -rw-r--r-- | src/indent.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/indent.c b/src/indent.c index 6e602d28f60..bae9ab1b46d 100644 --- a/src/indent.c +++ b/src/indent.c | |||
| @@ -1543,7 +1543,7 @@ compute_motion (EMACS_INT from, EMACS_INT fromvpos, EMACS_INT fromhpos, int did_ | |||
| 1543 | n = 1; | 1543 | n = 1; |
| 1544 | } | 1544 | } |
| 1545 | 1545 | ||
| 1546 | for (i = n - 1; i >= 0; --i) | 1546 | for (i = 0; i < n; ++i) |
| 1547 | { | 1547 | { |
| 1548 | if (VECTORP (charvec)) | 1548 | if (VECTORP (charvec)) |
| 1549 | { | 1549 | { |