From 9bfb31fcbee028eaecce75a743f2a0bd50b5807c Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Tue, 28 May 2024 07:54:34 -0600 Subject: remove the vis->initialized member I already fixed the reason that this even existed (vis_event_emit getting called at random times when the editor wasn't ready). The option checking in main() was moved up because I noticed it was in the wrong place while thinking about where to emit the INIT event. There is no reason to do a bunch of useless work just to print the version. --- vis.c | 1 + 1 file changed, 1 insertion(+) (limited to 'vis.c') diff --git a/vis.c b/vis.c index ed16f79..7d3dd6a 100644 --- a/vis.c +++ b/vis.c @@ -573,6 +573,7 @@ Vis *vis_new(void) { free(vis); return NULL; } + ui_init(&vis->ui, vis); vis->change_colors = true; for (size_t i = 0; i < LENGTH(vis->registers); i++) register_init(&vis->registers[i]); -- cgit v1.2.3