summaryrefslogtreecommitdiff
path: root/src/text.h
diff options
context:
space:
mode:
authorAlbert Cervin <albert@acervin.com>2023-02-07 14:06:53 +0100
committerAlbert Cervin <albert@acervin.com>2023-02-11 21:06:09 +0100
commitc2976cea9bbca465712534b7e523783e2ccc6c6e (patch)
tree6835cd4691c9c9c6f0467cc2b337da9ec5b68ec7 /src/text.h
parent8958e3f6c269965b19339f273dd806e985a71cde (diff)
downloaddged-c2976cea9bbca465712534b7e523783e2ccc6c6e.tar.gz
dged-c2976cea9bbca465712534b7e523783e2ccc6c6e.tar.xz
dged-c2976cea9bbca465712534b7e523783e2ccc6c6e.zip
Fix text to work more like GNU Emacs
This means that empty lines are not added until they have content.
Diffstat (limited to 'src/text.h')
-rw-r--r--src/text.h1
1 files changed, 1 insertions, 0 deletions
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);