diff options
| author | Quentin Carbonneaux | 2014-09-25 16:02:13 -0400 |
|---|---|---|
| committer | Quentin Carbonneaux | 2014-09-25 18:22:55 -0400 |
| commit | fa8308e54db1a8c0974e1f46135407b3f731a77a (patch) | |
| tree | a80dfd198601ae51c2139b22aee596d46402fa90 | |
| parent | 41c19dc506c081e3f418d4762b2025fb6476b35e (diff) | |
this shortcut was undefined behavior
| -rw-r--r-- | win.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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++) { |
