diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-28 20:40:52 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-01-28 20:40:52 -0500 |
commit | 31b5649b131695300f39563640c4af8f0d3032cb (patch) | |
tree | 71f4c2d2c0b2e56a36e7c86f250869c6daa16eda /main.c | |
parent | 0e57122ecfd554131fd6ad54fcbb556733bf6c88 (diff) |
more tabs
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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()); } |