summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-16 18:08:22 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-16 18:08:22 -0500
commite10e68bfd7adda727d18dca27196798400f1a119 (patch)
tree853ba0856c92026c4cb68fb11a109a2e4fa1c6c3 /ted.h
parent4b8db533619ee8eef64ded0793f413faaa7609c2 (diff)
:build somewhat working!
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/ted.h b/ted.h
index 3278e73..ad94ab8 100644
--- a/ted.h
+++ b/ted.h
@@ -137,6 +137,9 @@ typedef struct {
bool will_chain_edits;
bool chaining_edits; // are we chaining undo events together?
bool view_only;
+ // If set to true, buffer will be scrolled to the cursor position next frame.
+ // This is to fix the problem that x1,y1,x2,y2 are not updated until the buffer is rendered.
+ bool center_cursor_next_frame;
float x1, y1, x2, y2;
u32 nlines;
u32 lines_capacity;
@@ -204,7 +207,7 @@ typedef struct {
typedef struct {
char *filename;
- u32 line;
+ BufferPos pos;
u32 build_output_line; // which line in the build output corresponds to this error
} BuildError;
@@ -251,6 +254,7 @@ typedef struct Ted {
bool building; // is the build process running?
BuildError *build_errors; // dynamic array of build errors
+ u32 build_error; // build error we are currently "on"
Process build_process;
// When we read the stdout from the build process, the tail end of the read could be an