wip: cleanup

This commit is contained in:
denis 2021-03-20 17:52:45 +02:00
parent 021c8608c8
commit 9016253a51
4 changed files with 2 additions and 6 deletions

View File

@ -1,5 +1,5 @@
use crate::{common::input::handler::InputMode, tab::Pane};
use ansi_term::Colour::{self, Fixed};
use ansi_term::Colour;
use std::collections::HashMap;
use std::fmt::{Display, Error, Formatter};

View File

@ -1,8 +1,7 @@
//! `Tab`s holds multiple panes. It tracks their coordinates (x/y) and size,
//! as well as how they should be resized
use crate::common::input::handler::get_help;
use crate::common::{input::handler::InputMode, AppInstruction, AppState, SenderWithContext};
use crate::common::{input::handler::InputMode, AppInstruction, SenderWithContext};
use crate::layout::Layout;
use crate::panes::{PaneId, PositionAndSize, TerminalPane};
use crate::pty_bus::{PtyInstruction, VteEvent};

View File

@ -427,7 +427,6 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: CliArgs) {
screen.update_active_tab_name(c);
}
ScreenInstruction::ChangeInputMode(input_mode) => {
debug_log_to_file(format!("{} {:?}", "switched mode to: ".to_string(), input_mode));
screen.change_input_mode(input_mode);
}
ScreenInstruction::Quit => {

View File

@ -5,8 +5,6 @@ use std::os::unix::io::RawFd;
use std::str;
use std::sync::mpsc::Receiver;
use wasmer::wasmparser::WasmFuncType;
use super::{AppInstruction, SenderWithContext, input::handler::InputMode};
use crate::os_input_output::OsApi;
use crate::panes::PositionAndSize;