diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-13 13:33:05 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-13 13:33:05 -0500 |
commit | cdca3cc10dceda9580b2d87c2105c0654aa084fc (patch) | |
tree | 9da58ddc281c7cb002e4102b5d39e095c1b4d9b0 /ted.h | |
parent | 94aba782d6e2a4ec287c8159e087b3fd621a8a67 (diff) |
removed line->capacity
also fixed shift+click to select
Diffstat (limited to 'ted.h')
-rw-r--r-- | ted.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -108,7 +108,6 @@ typedef struct { typedef struct { SyntaxState syntax; u32 len; - u32 capacity; char32_t *str; } Line; @@ -142,7 +141,7 @@ typedef struct { u32 lines_capacity; u32 undo_history_write_pos; // where in the undo history was the last write? used by buffer_unsaved_changes - u32 longest_line_on_screen; // length of the longest line on screen. used to determine how far right we can scroll. + u32 first_line_on_screen, last_line_on_screen; // which lines are on screen? updated when buffer_render is called. // to cache syntax highlighting properly, it is important to keep track of the // first and last line modified since last frame. |