diff options
| author | Quentin Carbonneaux | 2014-09-12 18:46:15 -0400 |
|---|---|---|
| committer | Quentin Carbonneaux | 2014-09-12 18:46:15 -0400 |
| commit | cc82d5a44e538c398bf7ec95a6c275aa62e47530 (patch) | |
| tree | 4c0601e4a480877bc3b58aa1dc567b6421fd1988 | |
| parent | 60bbcb9b1155cb0ccc9f003661f369e139e5840d (diff) | |
use a more idiomatic loop
| -rw-r--r-- | win.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -561,7 +561,7 @@ lineinfo(W *w, unsigned off, unsigned lim, struct lineinfo *li) li->beg = li->len = 0; x = 0; - while (1) { + for (;;) { r = buf_get(&w->eb->b, off); rw = runewidth(r, x); |
