summaryrefslogtreecommitdiff
path: root/src/undo.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/undo.h')
-rw-r--r--src/undo.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/undo.h b/src/undo.h
index 42022c5..1ce3a8a 100644
--- a/src/undo.h
+++ b/src/undo.h
@@ -1,3 +1,4 @@
+#include "vec.h"
#include <stdbool.h>
#include <stdint.h>
@@ -40,10 +41,8 @@ struct undo_record {
#define INVALID_TOP -1
struct undo_stack {
- struct undo_record *records;
- uint32_t nrecords;
+ VEC(struct undo_record) records;
uint32_t top;
- uint32_t capacity;
bool undo_in_progress;
};