summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-13 15:47:30 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-13 15:47:30 -0500
commite9357bfd982b37672ed9c319956af32bf3db7856 (patch)
treeebc8d3d514725b9402f8316f92aafe2fe14fb22c /ted.h
parentcdca3cc10dceda9580b2d87c2105c0654aa084fc (diff)
view-only mode
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index 15a2dca..a1150f3 100644
--- a/ted.h
+++ b/ted.h
@@ -136,6 +136,7 @@ typedef struct {
bool modified;
bool will_chain_edits;
bool chaining_edits; // are we chaining undo events together?
+ bool view_only;
float x1, y1, x2, y2;
u32 nlines;
u32 lines_capacity;
@@ -248,6 +249,7 @@ typedef struct Ted {
Node nodes[TED_MAX_NODES];
bool buffers_used[TED_MAX_BUFFERS];
TextBuffer buffers[TED_MAX_BUFFERS];
+ char window_title[256];
char error[512];
char error_shown[512]; // error display in box on screen
} Ted;