summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2007-03-06 03:36:28 +0000
committerRich Felker <dalias@aerifal.cx>2007-03-06 03:36:28 +0000
commit84ed12a0dca620f70d46977a43eda355f6261d51 (patch)
treec0104eff4a7648633395ca0e1a610abdccc00628
parent0d4a13cd8798bf436d2f10ab929af92dd137aef0 (diff)
downloaduuterm-84ed12a0dca620f70d46977a43eda355f6261d51.tar.gz
ligature support
-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;