From e9357bfd982b37672ed9c319956af32bf3db7856 Mon Sep 17 00:00:00 2001 From: Leo Tenenbaum Date: Sat, 13 Feb 2021 15:47:30 -0500 Subject: view-only mode --- ted.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ted.h') 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; -- cgit v1.2.3