summaryrefslogtreecommitdiff
path: root/ted.c
diff options
context:
space:
mode:
Diffstat (limited to 'ted.c')
-rw-r--r--ted.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ted.c b/ted.c
index cc9eb06..3150458 100644
--- a/ted.c
+++ b/ted.c
@@ -172,6 +172,13 @@ static i32 ted_new_node(Ted *ted) {
}
+// how tall is a line buffer?
+static float ted_line_buffer_height(Ted const *ted) {
+ Settings const *settings = &ted->settings;
+ float const char_height = text_font_char_height(ted->font);
+ return char_height + 2 * settings->border_thickness;
+}
+
// switch to this node
static void ted_node_switch(Ted *ted, Node *node) {
assert(node->tabs);