summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index df41766..4ab1fea 100644
--- a/ted.h
+++ b/ted.h
@@ -118,6 +118,8 @@ typedef struct {
u32 nlines;
u32 lines_capacity;
+ u32 longest_line_on_screen; // length of the longest line on screen. used to determine how far right we can scroll.
+
// to cache syntax highlighting properly, it is important to keep track of the
// first and last line modified since last frame.
u32 frame_earliest_line_modified;