summaryrefslogtreecommitdiffstats
path: root/zellij-server/src/route.rs
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2023-03-06 12:10:02 +0100
committerGitHub <noreply@github.com>2023-03-06 12:10:02 +0100
commit57e8ca0fae4618a758732e410cc122e5dafb2ae2 (patch)
tree60c792c4c8114bc33b55b3a5f865387751f1045c /zellij-server/src/route.rs
parentc6c9bb5c370e8ea9c38cf66efc445d2caafd1baa (diff)
fix(layouts): naming and gototabname (#2225)
* fix(layouts): properly apply tab name * fix(gototabname): do not crash and properly apply default shell * style(fmt): rustfmt
Diffstat (limited to 'zellij-server/src/route.rs')
-rw-r--r--zellij-server/src/route.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/zellij-server/src/route.rs b/zellij-server/src/route.rs
index a4ab8dcf9..53b43ecdc 100644
--- a/zellij-server/src/route.rs
+++ b/zellij-server/src/route.rs
@@ -498,6 +498,7 @@ pub(crate) fn route_action(
.with_context(err_context)?;
},
Action::GoToTabName(name, create) => {
+ let shell = session.default_shell.clone();
let swap_tiled_layouts = session.layout.swap_tiled_layouts.clone();
let swap_floating_layouts = session.layout.swap_floating_layouts.clone();
session
@@ -505,6 +506,7 @@ pub(crate) fn route_action(
.send_to_screen(ScreenInstruction::GoToTabName(
name,
(swap_tiled_layouts, swap_floating_layouts),
+ shell,
create,
Some(client_id),
))