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.
This commit is contained in:
Eli Zaretskii 2011-09-12 07:51:27 -04:00
parent b0415a0397
commit fa819fed53
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2011-09-12 Eli Zaretskii <eliz@gnu.org>
* indent.c (compute_motion): Process display vector front to back
rather than the other way around. (Bug#2496)
2011-09-12 Stefan Monnier <monnier@iro.umontreal.ca>
* fileio.c (Finsert_file_contents): Don't assume beg_offset is 0.

View file

@ -1543,7 +1543,7 @@ compute_motion (EMACS_INT from, EMACS_INT fromvpos, EMACS_INT fromhpos, int did_
n = 1;
}
for (i = n - 1; i >= 0; --i)
for (i = 0; i < n; ++i)
{
if (VECTORP (charvec))
{