logging works ( but it's buggy 😭 )
This commit is contained in:
+8
-3
@@ -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;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user