summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-28 20:40:52 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-28 20:40:52 -0500
commit31b5649b131695300f39563640c4af8f0d3032cb (patch)
tree71f4c2d2c0b2e56a36e7c86f250869c6daa16eda /main.c
parent0e57122ecfd554131fd6ad54fcbb556733bf6c88 (diff)
more tabs
Diffstat (limited to 'main.c')
-rw-r--r--main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.c b/main.c
index 8248ac3..686a515 100644
--- a/main.c
+++ b/main.c
@@ -464,7 +464,8 @@ int main(int argc, char **argv) {
{
float x1 = 50, y1 = 50, x2 = window_width-50, y2 = window_height-50;
- buffer_render(&ted->buffers[ted->active_node->tabs[0]], x1, y1, x2, y2);
+ Node *node = ted->active_node;
+ buffer_render(&ted->buffers[node->tabs[node->active_tab]], x1, y1, x2, y2);
if (text_has_err()) {
ted_seterr(ted, "Couldn't render text: %s", text_get_err());
}