diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-21 16:14:10 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-21 16:14:10 -0500 |
commit | 37ce64c167e12c0d652442b2ff3deb9327d1317d (patch) | |
tree | 8d6ef23080e635955529ef3a851d7d33a53230be /ted.h | |
parent | 617907fb4731d67f6e7aca17b9dd7881f2093aad (diff) |
generalized selector code seems to work, fix buffer_set_line_len memory leak
Diffstat (limited to 'ted.h')
-rw-r--r-- | ted.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |