summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-21 16:14:10 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-21 16:14:10 -0500
commit37ce64c167e12c0d652442b2ff3deb9327d1317d (patch)
tree8d6ef23080e635955529ef3a851d7d33a53230be /ted.h
parent617907fb4731d67f6e7aca17b9dd7881f2093aad (diff)
generalized selector code seems to work, fix buffer_set_line_len memory leak
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ted.h b/ted.h
index 6444b5f..0ad4887 100644
--- a/ted.h
+++ b/ted.h
@@ -139,6 +139,7 @@ typedef struct {
bool will_chain_edits;
bool chaining_edits; // are we chaining undo events together?
bool view_only;
+ bool line_buffer_submitted; // (line buffers only) set to true when submitted. you have to reset it to false.
// 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;
@@ -248,7 +249,6 @@ typedef struct Ted {
Menu menu;
FileSelector file_selector;
TextBuffer line_buffer; // general-purpose line buffer for inputs -- used for menus
- bool line_buffer_submitted; // set to true if the line buffer was just submitted this frame.
TextBuffer find_buffer; // use for "find" term in find/find+replace
TextBuffer replace_buffer; // "replace" for find+replace
TextBuffer build_buffer; // buffer for build output (view only)