aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-server/src/tab/unit
diff options
context:
space:
mode:
authorChristophe Verbinnen <christophe@verbinnen.org>2022-01-15 06:38:45 -0500
committerGitHub <noreply@github.com>2022-01-15 12:38:45 +0100
commit9cc2645db024df0a95efda42aed34bd3def19b28 (patch)
treed2345ca39dba0d5a2bf2cd7527799859147d6d69 /zellij-server/src/tab/unit
parentdocs(changelog): fix dependency problem (diff)
downloadsl0ppij-9cc2645db024df0a95efda42aed34bd3def19b28.tar.gz
sl0ppij-9cc2645db024df0a95efda42aed34bd3def19b28.tar.xz
sl0ppij-9cc2645db024df0a95efda42aed34bd3def19b28.zip
Add a copy command option (#996)
Usage: zellij options --copy-command "xclip -sel clip" Co-authored-by: Christophe Verbinnen <christophev@knowbe4.com>
Diffstat (limited to 'zellij-server/src/tab/unit')
-rw-r--r--zellij-server/src/tab/unit/tab_tests.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/zellij-server/src/tab/unit/tab_tests.rs b/zellij-server/src/tab/unit/tab_tests.rs
index 13b97124..5ac63f6b 100644
--- a/zellij-server/src/tab/unit/tab_tests.rs
+++ b/zellij-server/src/tab/unit/tab_tests.rs
@@ -96,6 +96,7 @@ fn create_new_tab(size: Size) -> Tab {
let mut connected_clients = HashSet::new();
connected_clients.insert(client_id);
let connected_clients = Rc::new(RefCell::new(connected_clients));
+ let copy_command = None;
let mut tab = Tab::new(
index,
position,
@@ -110,6 +111,7 @@ fn create_new_tab(size: Size) -> Tab {
connected_clients,
session_is_mirrored,
client_id,
+ copy_command,
);
tab.apply_layout(
LayoutTemplate::default().try_into().unwrap(),