summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-03-03 20:14:51 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-03-03 20:14:51 -0500
commit6ef4720bba8fcb90bcbdca5d7766b76816fc58c5 (patch)
tree41a0d02884f182193ff41ccb23b7f66adf35404b /main.c
parente3eb333ae2b07467e14dd9e2f845889f75f01a16 (diff)
more autocomplete (already partially working!)
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);