summaryrefslogtreecommitdiff
path: root/txt.h
diff options
context:
space:
mode:
Diffstat (limited to 'txt.h')
-rw-r--r--txt.h19
1 files changed, 12 insertions, 7 deletions
diff --git a/txt.h b/txt.h
index 3f94c6d..521111d 100644
--- a/txt.h
+++ b/txt.h
@@ -23,11 +23,6 @@ typedef struct {
} TxtBuf;
typedef struct {
- DYNARR(TxtPiece);
- int dirty;
-} TxtPieceTbl;
-
-typedef struct {
struct Txt *t;
u32 p, i;
} TxtLoc;
@@ -39,8 +34,18 @@ typedef struct {
} TxtRange;
typedef struct {
- TxtPieceTbl v[TXT_HIST_MAX];
- TxtLoc cur[TXT_HIST_MAX];
+ DYNARR(TxtPiece);
+ int dirty;
+} TxtPieceTbl;
+
+typedef struct {
+ DYNARR(TxtPiece);
+ TxtLoc cur;
+ int dirty;
+} TxtHistNode;
+
+typedef struct {
+ TxtHistNode v[TXT_HIST_MAX];
u32 i, n;
} TxtHist;