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-core.h | 1 - 1 file changed, 1 deletion(-) (limited to 'vis-core.h') diff --git a/vis-core.h b/vis-core.h index bc9736e..182c537 100644 --- a/vis-core.h +++ b/vis-core.h @@ -205,7 +205,6 @@ struct Vis { Action action_prev; /* last operator action used by the repeat (dot) command */ Mode *mode; /* currently active mode, used to search for keybindings */ Mode *mode_prev; /* previously active user mode */ - bool initialized; /* whether UI and Lua integration has been initialized */ int nesting_level; /* parsing state to hold keep track of { } nesting level */ volatile bool running; /* exit main loop once this becomes false */ int exit_status; /* exit status when terminating main loop */ -- cgit v1.2.3