diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-25 19:52:40 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-25 19:52:40 -0500 |
commit | d453eedc5282074af83375532e8edcb68ada3300 (patch) | |
tree | 204b9f87cf187e03e856d1c997a3fb6d300e761f /ted.h | |
parent | 2baf965c7db4a3640cd120e050c61aa7de67448b (diff) |
started tab moving
Diffstat (limited to 'ted.h')
-rw-r--r-- | ted.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -280,6 +280,9 @@ typedef struct Ted { SDL_Cursor *cursor_arrow, *cursor_ibeam, *cursor_resize_h, *cursor_resize_v; SDL_Cursor *cursor; // which cursor to use this frame + // index of buffer whose tab user is dragging around, 0 for none. + u16 dragging_tab; + // if not NULL, points to the node whose split the user is currently resizing. Node *resizing_split; @@ -304,6 +307,7 @@ typedef struct Ted { char tags_dir[TED_PATH_MAX]; // where we are reading tags from bool nodes_used[TED_MAX_NODES]; Node nodes[TED_MAX_NODES]; + // NOTE: the buffer at index 0 is reserved as a "null buffer" and should not be used. bool buffers_used[TED_MAX_BUFFERS]; TextBuffer buffers[TED_MAX_BUFFERS]; char window_title[256]; |