summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Carbonneaux2014-09-12 18:46:15 -0400
committerQuentin Carbonneaux2014-09-12 18:46:15 -0400
commitcc82d5a44e538c398bf7ec95a6c275aa62e47530 (patch)
tree4c0601e4a480877bc3b58aa1dc567b6421fd1988
parent60bbcb9b1155cb0ccc9f003661f369e139e5840d (diff)
use a more idiomatic loop
-rw-r--r--win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win.c b/win.c
index a704598..614be10 100644
--- a/win.c
+++ b/win.c
@@ -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);