From 79f562d94a908d3ebfc9ac68a577dbc70f12c450 Mon Sep 17 00:00:00 2001 From: WormHeamer Date: Wed, 31 Dec 2025 03:20:25 -0500 Subject: allow opening multiple files at once + replace modes --- txt.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'txt.h') diff --git a/txt.h b/txt.h index 6bc5dd1..e61c881 100644 --- a/txt.h +++ b/txt.h @@ -24,6 +24,7 @@ typedef struct { DYNARR(TxtPiece) ptbl; TxtBuf buf[2]; u32 len; + int dirty; } Txt; typedef struct { @@ -37,6 +38,7 @@ TxtLoc txt_split_piece(TxtLoc l); void txt_remove_piece(Txt *b, u32 pi); void txt_insert_piece(Txt *b, u32 pi, TxtBufIdx buf, u32 ofs, u32 n); +void txt_load_empty(Txt *b); int txt_load(Txt *b, const char *path); int txt_save(Txt *b, const char *path); void txt_free(Txt *b); -- cgit v1.2.3