diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-02-15 15:50:00 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2021-02-15 15:52:04 +0800 |
commit | 6d7b3cd062214f2cc66886d49d1a60406204abf3 (patch) | |
tree | 62b27f369453188b7bcda077185ac0fdd6fb3c6a /src/main.rs | |
parent | 6ca9e6ca52a4d4d32036df2914ee773ab313397b (diff) |
Keep selecting the first element during iteration unless…
…the user provided input already.
Related to #77
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index d299e1a..ce2e728 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,5 +1,5 @@ #![forbid(unsafe_code)] -use anyhow::{anyhow, Result}; +use anyhow::Result; use clap::Clap; use dua::{ByteFormat, TraversalSorting}; use std::{fs, io, io::Write, path::PathBuf, process}; @@ -24,7 +24,7 @@ fn main() -> Result<()> { #[cfg(any(feature = "tui-unix", feature = "tui-crossplatform"))] Some(Interactive { input }) => { use crate::interactive::{Interaction, TerminalApp}; - use anyhow::Context; + use anyhow::{anyhow, Context}; use crosstermion::terminal::{tui::new_terminal, AlternateRawScreen}; let no_tty_msg = "Interactive mode requires a connected terminal"; |