aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKyle Sutherland-Cash <kyle.sutherlandcash@gmail.com>2021-05-09 01:37:27 -0700
committerKyle Sutherland-Cash <kyle.sutherlandcash@gmail.com>2021-05-09 01:37:27 -0700
commit74b54796298fea06fbbb2a070bd786e2628f5559 (patch)
tree7734bbe5c6aa3c32f5788c016dc7d346d1db3f01 /src
parentcargo fmt (diff)
downloadsl0ppij-74b54796298fea06fbbb2a070bd786e2628f5559.tar.gz
sl0ppij-74b54796298fea06fbbb2a070bd786e2628f5559.tar.xz
sl0ppij-74b54796298fea06fbbb2a070bd786e2628f5559.zip
Revert accidental rename of ToggleActiveSyncTab
Diffstat (limited to 'src')
-rw-r--r--src/common/errors.rs4
-rw-r--r--src/common/input/actions.rs2
-rw-r--r--src/common/screen.rs4
-rw-r--r--src/server/route.rs4
4 files changed, 7 insertions, 7 deletions
diff --git a/src/common/errors.rs b/src/common/errors.rs
index 46121312..2a3c665b 100644
--- a/src/common/errors.rs
+++ b/src/common/errors.rs
@@ -200,7 +200,7 @@ pub enum ScreenContext {
PageScrollDown,
ClearScroll,
CloseFocusedPane,
- ToggleActiveSyncPanes,
+ ToggleActiveSyncTab,
ToggleActiveTerminalFullscreen,
SetSelectable,
SetInvisibleBorders,
@@ -261,7 +261,7 @@ impl From<&ScreenInstruction> for ScreenContext {
ScreenInstruction::UpdateTabName(_) => ScreenContext::UpdateTabName,
ScreenInstruction::TerminalResize(_) => ScreenContext::TerminalResize,
ScreenInstruction::ChangeMode(_) => ScreenContext::ChangeMode,
- ScreenInstruction::ToggleActiveSyncPanes => ScreenContext::ToggleActiveSyncPanes,
+ ScreenInstruction::ToggleActiveSyncTab => ScreenContext::ToggleActiveSyncTab,
}
}
}
diff --git a/src/common/input/actions.rs b/src/common/input/actions.rs
index f07d7513..54cbbcdc 100644
--- a/src/common/input/actions.rs
+++ b/src/common/input/actions.rs
@@ -40,7 +40,7 @@ pub enum Action {
/// Toggle between fullscreen focus pane and normal layout.
ToggleFocusFullscreen,
/// Toggle between sending text commands to all panes on the current tab and normal mode.
- ToggleActiveSyncPanes,
+ ToggleActiveSyncTab,
/// Open a new pane in the specified direction (relative to focus).
/// If no direction is specified, will try to use the biggest available space.
NewPane(Option<Direction>),
diff --git a/src/common/screen.rs b/src/common/screen.rs
index e28694e8..b12578a7 100644
--- a/src/common/screen.rs
+++ b/src/common/screen.rs
@@ -52,7 +52,7 @@ pub enum ScreenInstruction {
NewTab(RawFd),
SwitchTabNext,
SwitchTabPrev,
- ToggleActiveSyncPanes,
+ ToggleActiveSyncTab,
CloseTab,
GoToTab(u32),
UpdateTabName(Vec<u8>),
@@ -551,7 +551,7 @@ pub fn screen_thread_main(
ScreenInstruction::ChangeMode(mode_info) => {
screen.change_mode(mode_info);
}
- ScreenInstruction::ToggleActiveSyncPanes => {
+ ScreenInstruction::ToggleActiveSyncTab => {
screen
.get_active_tab_mut()
.unwrap()
diff --git a/src/server/route.rs b/src/server/route.rs
index 753a1e12..1fa5825a 100644
--- a/src/server/route.rs
+++ b/src/server/route.rs
@@ -140,10 +140,10 @@ fn route_action(action: Action, session: &SessionMetaData, os_input: &dyn Server
.send_to_screen(ScreenInstruction::SwitchTabPrev)
.unwrap();
}
- Action::ToggleActiveSyncPanes => {
+ Action::ToggleActiveSyncTab => {
session
.senders
- .send_to_screen(ScreenInstruction::ToggleActiveSyncPanes)
+ .send_to_screen(ScreenInstruction::ToggleActiveSyncTab)
.unwrap();
}
Action::CloseTab => {