summaryrefslogtreecommitdiff
path: root/txt.h
diff options
context:
space:
mode:
authorWormHeamer2026-01-02 01:03:41 -0500
committerWormHeamer2026-01-02 01:03:41 -0500
commit92d528ad2f406f85933c2a410594e9fc3da2c91e (patch)
tree3db6420994f3487dafded21a4790528d2916bb57 /txt.h
parentdf49050cf32373ea2679ae71a659d0cdc5663e04 (diff)
set and unset dirty flag as appropriate on undo/redo
Diffstat (limited to 'txt.h')
-rw-r--r--txt.h6
1 files changed, 4 insertions, 2 deletions
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 */