summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.c b/main.c
index 0a78fe2..4a70160 100644
--- a/main.c
+++ b/main.c
@@ -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);