From c2976cea9bbca465712534b7e523783e2ccc6c6e Mon Sep 17 00:00:00 2001 From: Albert Cervin Date: Tue, 7 Feb 2023 14:06:53 +0100 Subject: Fix text to work more like GNU Emacs This means that empty lines are not added until they have content. --- src/text.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/text.h') diff --git a/src/text.h b/src/text.h index 12fe576..fbee89b 100644 --- a/src/text.h +++ b/src/text.h @@ -37,6 +37,7 @@ struct text_chunk { uint32_t nbytes; uint32_t nchars; uint32_t line; + bool allocated; }; typedef void (*chunk_cb)(struct text_chunk *chunk, void *userdata); -- cgit v1.2.3