aboutsummaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authordenis <denismaximov98@gmail.com>2021-03-21 10:48:21 +0200
committerdenis <denismaximov98@gmail.com>2021-03-21 10:48:21 +0200
commit99c578ea1d23f12e2b13f43b562406ccd4120802 (patch)
treee34d686b12671b977cb30d4ab5286a5b8117e728 /src/client
parentwip: cleanup (diff)
downloadsl0ppij-99c578ea1d23f12e2b13f43b562406ccd4120802.tar.gz
sl0ppij-99c578ea1d23f12e2b13f43b562406ccd4120802.tar.xz
sl0ppij-99c578ea1d23f12e2b13f43b562406ccd4120802.zip
chore: formatting
Diffstat (limited to 'src/client')
-rw-r--r--src/client/tab.rs20
1 files changed, 6 insertions, 14 deletions
diff --git a/src/client/tab.rs b/src/client/tab.rs
index 67c4540b..8a515279 100644
--- a/src/client/tab.rs
+++ b/src/client/tab.rs
@@ -65,7 +65,7 @@ pub struct Tab {
pub send_plugin_instructions: SenderWithContext<PluginInstruction>,
pub send_app_instructions: SenderWithContext<AppInstruction>,
expansion_boundary: Option<PositionAndSize>,
- pub input_mode: InputMode
+ pub input_mode: InputMode,
}
#[derive(Clone, Debug, Default, Serialize, Deserialize)]
@@ -74,7 +74,7 @@ pub struct TabData {
pub position: usize,
pub name: String,
pub active: bool,
- pub input_mode: InputMode
+ pub input_mode: InputMode,
}
// FIXME: Use a struct that has a pane_type enum, to reduce all of the duplication
@@ -194,7 +194,7 @@ impl Tab {
send_app_instructions: SenderWithContext<AppInstruction>,
max_panes: Option<usize>,
pane_id: Option<PaneId>,
- input_mode: InputMode
+ input_mode: InputMode,
) -> Self {
let panes = if let Some(PaneId::Terminal(pid)) = pane_id {
let new_terminal = TerminalPane::new(pid, *full_screen_ws);
@@ -224,7 +224,7 @@ impl Tab {
send_pty_instructions,
send_plugin_instructions,
expansion_boundary: None,
- input_mode
+ input_mode,
}
}
@@ -654,16 +654,8 @@ impl Tab {
for (kind, terminal) in self.panes.iter_mut() {
if !self.panes_to_hide.contains(&terminal.pid()) {
match self.active_terminal.unwrap() == terminal.pid() {
- true => boundaries.add_rect(
- terminal.as_ref(),
- true,
- self.input_mode
- ),
- false => boundaries.add_rect(
- terminal.as_ref(),
- false,
- self.input_mode
- ),
+ true => boundaries.add_rect(terminal.as_ref(), true, self.input_mode),
+ false => boundaries.add_rect(terminal.as_ref(), false, self.input_mode),
}
if let Some(vte_output) = terminal.render() {
let vte_output = if let PaneId::Terminal(_) = kind {