aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDavid Moc <personal@cdatgoose.org>2026-06-02 13:50:21 +0200
committerDavid Moc <personal@cdatgoose.org>2026-06-02 13:50:21 +0200
commita15cb041654ae307add0b998b526c87c3f42bf5f (patch)
tree225bb4b70e9fa05aa5f4d2722a1a9cf5fc6fca7f /src/main.c
parent6aeaa171dc1ca43392f53cbd02097f76e1b1c5a0 (diff)
Add plugin hooks and mode plugins
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 94a08fa..191a159 100644
--- a/src/main.c
+++ b/src/main.c
@@ -17,9 +17,8 @@ static void print_usage(const char *argv0) {
fprintf(stderr, " %s [--config path/to/ecexrc.c] [--font path/to/font.ttf]\n", argv0);
fprintf(stderr, "\n");
fprintf(stderr, "keys:\n");
- fprintf(stderr, " F1 opens M-x\n");
+ fprintf(stderr, " M-x opens the command prompt\n");
fprintf(stderr, " Tab completes M-x command names\n");
- fprintf(stderr, " Alt+x opens M-x when the OS/window-manager allows it\n");
fprintf(stderr, " C-x is reserved for prefix maps\n");
fprintf(stderr, "\n");
fprintf(stderr, "env:\n");
@@ -141,15 +140,18 @@ int main(int argc, char **argv) {
}
snprintf(app.font_path, sizeof(app.font_path), "%s", font_path);
+ app.font_revision_seen = ed->font_revision;
+ app.ui_revision_seen = ed->ui_revision;
app_install_callbacks(&app);
- app_message(&app, "F1 for M-x. Tab completes commands.");
+ app_message(&app, "M-x for commands. Tab completes.");
while (!glfwWindowShouldClose(window) && !ed->should_quit) {
double now = glfwGetTime();
if (ecex_media_tick(ed, now) || ecex_tick_animations(ed, now)) {
app.dirty = 1;
}
+ app_sync_editor_ui(&app);
if (app.dirty) {
render(&app);