summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
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());
}