summary refs log tree commit diff
path: root/bin/edi/edi.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bin/edi/edi.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/edi/edi.c b/bin/edi/edi.c
index c8cd2a44..fb6e3929 100644
--- a/bin/edi/edi.c
+++ b/bin/edi/edi.c
@@ -30,10 +30,8 @@ int main(int argc, char *argv[]) {
 	fileRead(&file);
 
 	const struct Table *table = &file.log.states[file.log.state].table;
-	for (size_t i = 0; i < table->len; ++i) {
-		for (size_t j = 0; j < table->slices[i].len; ++j) {
-			printf("%lc", table->slices[i].ptr[j]);
-		}
+	for (struct Iter it = iter(table, 0); it.ch != WEOF; it = iterNext(it)) {
+		printf("%lc", it.ch);
 	}
 
 	fileFree(&file);