From 92d528ad2f406f85933c2a410594e9fc3da2c91e Mon Sep 17 00:00:00 2001 From: WormHeamer Date: Fri, 2 Jan 2026 01:03:41 -0500 Subject: set and unset dirty flag as appropriate on undo/redo --- txt.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'txt.h') diff --git a/txt.h b/txt.h index 148369e..f17728a 100644 --- a/txt.h +++ b/txt.h @@ -22,7 +22,10 @@ typedef struct { u32 n, c; } TxtBuf; -typedef DYNARR(TxtPiece) TxtPieceTbl; +typedef struct { + DYNARR(TxtPiece); + int dirty; +} TxtPieceTbl; typedef struct { struct Txt *t; @@ -40,7 +43,6 @@ typedef struct Txt { TxtHist hist; TxtBuf buf[2]; u32 len; - int dirty; } Txt; /* text buffer manipulation */ -- cgit v1.2.3