summaryrefslogtreecommitdiff
path: root/term.c
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2006-10-14 09:17:38 +0000
committerRich Felker <dalias@aerifal.cx>2006-10-14 09:17:38 +0000
commit0c13fa1c14130cc9e6f1d282ba54d7bbc7f232ff (patch)
treedfabaf20649d19eea8fb49d97c0ef1d4d510bfe7 /term.c
parent99cf4af9f8ce46b8138adcbf86376908fa06b56c (diff)
correctly apply combining marks in last column when auto-margins are in use.
Diffstat (limited to 'term.c')
-rw-r--r--term.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/term.c b/term.c
index d5acd12..83a7c42 100644
--- a/term.c
+++ b/term.c
@@ -408,6 +408,7 @@ static void process_char(struct uuterm *t, unsigned c)
case 0:
y = t->y;
x = t->x;
+ if (t->am) x++;
if (!x--) {
/* nothing to combine at home position */
if (!y--) return;