summary refs log tree commit diff
path: root/bin/edi/buffer.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-11-21 23:41:15 -0500
committerJune McEnroe <june@causal.agency>2018-11-21 23:41:15 -0500
commitf8da655d5b8154940540a1de62122b7639cf235e (patch)
tree969ab688a51ab6ca2a68a64636e8b21f38147a8d /bin/edi/buffer.c
parentFix freeing empty buffer block (diff)
downloadsrc-f8da655d5b8154940540a1de62122b7639cf235e.tar.gz
src-f8da655d5b8154940540a1de62122b7639cf235e.zip
Add Iter for edi
Diffstat (limited to 'bin/edi/buffer.c')
-rw-r--r--bin/edi/buffer.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/bin/edi/buffer.c b/bin/edi/buffer.c
index 7297f411..5950317e 100644
--- a/bin/edi/buffer.c
+++ b/bin/edi/buffer.c
@@ -34,7 +34,6 @@ struct Buffer bufferAlloc(size_t cap) {
 	struct Block *block = blockAlloc(NULL, cap);
 	return (struct Buffer) {
 		.cap = cap,
-		.len = 0,
 		.slice = { block->chars, 0 },
 		.block = block,
 	};