summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Carbonneaux2014-09-25 16:02:13 -0400
committerQuentin Carbonneaux2014-09-25 18:22:55 -0400
commitfa8308e54db1a8c0974e1f46135407b3f731a77a (patch)
treea80dfd198601ae51c2139b22aee596d46402fa90
parent41c19dc506c081e3f418d4762b2025fb6476b35e (diff)
this shortcut was undefined behavior
-rw-r--r--win.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/win.c b/win.c
index 4cf193d..fc196e9 100644
--- a/win.c
+++ b/win.c
@@ -460,8 +460,7 @@ draw(W *w, GColor bg)
cw = 0;
x = g->hmargin;
y = g->vmargin + font.ascent;
- f.n = 0;
- flushfrag(&f, w, x, y, sel);
+ f = (struct frag){.x=x, .y=y};
next = &w->l[1];
for (c=w->l[0];; c++) {