diff options
| author | WormHeamer | 2026-01-02 01:03:41 -0500 |
|---|---|---|
| committer | WormHeamer | 2026-01-02 01:03:41 -0500 |
| commit | 92d528ad2f406f85933c2a410594e9fc3da2c91e (patch) | |
| tree | 3db6420994f3487dafded21a4790528d2916bb57 /txt.h | |
| parent | df49050cf32373ea2679ae71a659d0cdc5663e04 (diff) | |
set and unset dirty flag as appropriate on undo/redo
Diffstat (limited to 'txt.h')
| -rw-r--r-- | txt.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 */ |
