summaryrefslogtreecommitdiffstats
path: root/zellij-server/src/route.rs
diff options
context:
space:
mode:
Diffstat (limited to 'zellij-server/src/route.rs')
-rw-r--r--zellij-server/src/route.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/zellij-server/src/route.rs b/zellij-server/src/route.rs
index b62bcd8ae..c8a7f4194 100644
--- a/zellij-server/src/route.rs
+++ b/zellij-server/src/route.rs
@@ -540,6 +540,16 @@ pub(crate) fn route_action(
.send_to_screen(ScreenInstruction::UndoRenameTab(client_id))
.with_context(err_context)?;
},
+ Action::MoveTab(direction) => {
+ let screen_instr = match direction {
+ Direction::Left => ScreenInstruction::MoveTabLeft(client_id),
+ Direction::Right => ScreenInstruction::MoveTabRight(client_id),
+ _ => return Ok(false),
+ };
+ senders
+ .send_to_screen(screen_instr)
+ .with_context(err_context)?;
+ },
Action::Quit => {
senders
.send_to_server(ServerInstruction::ClientExit(client_id))