diff options
| author | Aram Drevekenin <aram@poor.dev> | 2020-11-14 13:55:13 +0100 |
|---|---|---|
| committer | Aram Drevekenin <aram@poor.dev> | 2020-11-14 13:55:13 +0100 |
| commit | b66dffe5cf1aef41b75e6b130b9d465468c9648c (patch) | |
| tree | 2b3be951c926189c67bdcfb9d46d7fbc29c4c2a2 /src | |
| parent | fix(ux): properly echo characters and do not mess up exit (#44) (diff) | |
| download | sl0ppij-b66dffe5cf1aef41b75e6b130b9d465468c9648c.tar.gz sl0ppij-b66dffe5cf1aef41b75e6b130b9d465468c9648c.tar.xz sl0ppij-b66dffe5cf1aef41b75e6b130b9d465468c9648c.zip | |
HOTFIX: do not get os input unless we're starting the app
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 1f30d334..d996df1b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -63,7 +63,6 @@ fn delete_log_files() -> std::io::Result<()> { } pub fn main() { - let os_input = get_os_input(); let opts = Opt::from_args(); if opts.split.is_some() { match opts.split { @@ -89,6 +88,7 @@ pub fn main() { let api_command = bincode::serialize(&ApiCommand::OpenFile(file_to_open)).unwrap(); stream.write_all(&api_command).unwrap(); } else { + let os_input = get_os_input(); start(Box::new(os_input), opts); } } |
