summaryrefslogtreecommitdiff
path: root/term.c
diff options
context:
space:
mode:
Diffstat (limited to 'term.c')
-rw-r--r--term.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/term.c b/term.c
index aa19914..17444b8 100644
--- a/term.c
+++ b/term.c
@@ -25,6 +25,8 @@ static void dirty(struct uuterm *t, int y, int x1, int len)
{
int x2 = x1 + len - 1;
struct uurow *r = t->rows[y];
+ /* account for potentially affected ligatures */
+ if (x1) x1--; if (x2<t->w-1) x2++;
//r->x1 += (x1 - r->x1) & (x1 - r->x1)>>8*sizeof(int)-1;
//r->x2 += (x2 - r->x2) & (r->x2 - x2)>>8*sizeof(int)-1;
if (x1 < r->x1) r->x1 = x1;