About to scrap old undo system

This commit is contained in:
Allen Webster 2019-02-07 19:32:31 -08:00
parent 9804beed17
commit fcc3d4e64f
1 changed files with 10 additions and 7 deletions

View File

@ -40,18 +40,20 @@ struct Edit_Step{
struct Edit_Stack{ struct Edit_Stack{
u8 *strings; u8 *strings;
i32 size, max; i32 size;
i32 max;
Edit_Step *edits; Edit_Step *edits;
i32 edit_count, edit_max; i32 edit_count;
i32 edit_max;
}; };
struct Small_Edit_Stack{ struct Small_Edit_Stack{
u8 *strings; u8 *strings;
i32 size, max; i32 size;
i32 max;
Buffer_Edit *edits; Buffer_Edit *edits;
i32 edit_count, edit_max; i32 edit_count;
i32 edit_max;
}; };
struct Undo_Data{ struct Undo_Data{
@ -60,7 +62,8 @@ struct Undo_Data{
Edit_Stack history; Edit_Stack history;
Small_Edit_Stack children; Small_Edit_Stack children;
i32 history_block_count, history_head_block; i32 history_block_count;
i32 history_head_block;
i32 edit_history_cursor; i32 edit_history_cursor;
b32 current_block_normal; b32 current_block_normal;
}; };