diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-03-03 20:14:51 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-03-03 20:14:51 -0500 |
commit | 6ef4720bba8fcb90bcbdca5d7766b76816fc58c5 (patch) | |
tree | 41a0d02884f182193ff41ccb23b7f66adf35404b /main.c | |
parent | e3eb333ae2b07467e14dd9e2f845889f75f01a16 (diff) |
more autocomplete (already partially working!)
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -74,6 +74,7 @@ bool tag_goto(Ted *ted, char const *tag); #include "tags.c" #include "build.c" #include "menu.c" +#include "autocomplete.c" #include "command.c" #include "config.c" #include "session.c" @@ -805,6 +806,9 @@ int main(int argc, char **argv) { float y1 = padding; node_frame(ted, node, rect4(x1, y1, x2, y)); + if (ted->autocomplete) { + autocomplete_frame(ted); + } } else { text_utf8_anchored(font, "Press Ctrl+O to open a file or Ctrl+N to create a new one.", window_width * 0.5f, window_height * 0.5f, colors[COLOR_TEXT_SECONDARY], ANCHOR_MIDDLE); |