diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-11-14 23:30:17 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-11-15 12:56:56 +0100 |
| commit | 0f479c4da7f0c62d7422417d3d0601c853f043aa (patch) | |
| tree | 6bb592276fd977cdbca06f8bab4eac6c4d148cf5 /vis-core.h | |
| parent | d770aa314255313e97b3ecb4c0cafde0fca16c9d (diff) | |
| download | vis-0f479c4da7f0c62d7422417d3d0601c853f043aa.tar.gz vis-0f479c4da7f0c62d7422417d3d0601c853f043aa.tar.xz | |
vis: defer UI initialization and overhaul argument parsing
Do not initalize curses UI before it is actually needed.
Move vis command line argument parsing logic into main.c.
This fixes `vis -v` output and exit status.
Fix #351
Diffstat (limited to 'vis-core.h')
| -rw-r--r-- | vis-core.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -172,6 +172,7 @@ 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; /* previsouly active user mode */ + bool initialized; /* whether UI and Lua integration has been initialized */ volatile bool running; /* exit main loop once this becomes false */ int exit_status; /* exit status when terminating main loop */ volatile sig_atomic_t cancel_filter; /* abort external command/filter (SIGINT occured) */ |
