logging works ( but it's buggy 😭 )

This commit is contained in:
FantasyPvP
2024-12-05 01:42:50 +00:00
parent ad8496ca68
commit 3f35a00526
12 changed files with 786 additions and 44 deletions
+8 -3
View File
@@ -1,4 +1,5 @@
#include "dynstr.h"
#include "state.h"
#include <stdint.h>
/**
@@ -6,7 +7,7 @@
* cursor position, and various editor settings.
*/
typedef struct {
uint32_t lines;
uint32_t lines;
uint32_t capacity;
uint32_t buffer_line;
uint32_t buffer_col;
@@ -14,9 +15,13 @@ typedef struct {
uint32_t x_offset;
bool unsaved_changes;
bool editmode;
String_t* buffer;
String_t* original;
String_t filename;
String_t* buffer;
// variables needed for the changelog functionality
int original_len; // length of the original buffer
String_t* original; // original buffer
StateArray diff; // changelog
} Editor;
/**