summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/cmd-rename-window.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-10-10 10:02:48 +0000
committernicm <nicm@openbsd.org>2009-10-10 10:02:48 +0000
commit01b2421e04cbfd153be5c6642d40c8f87c09f4c5 (patch)
treec4fa5b75121b64ed84165f58352a2776ecbcbfc4 /usr.bin/tmux/cmd-rename-window.c
parentWe don't need independent file reader and writer anymore. So, (diff)
downloadwireguard-openbsd-01b2421e04cbfd153be5c6642d40c8f87c09f4c5.tar.xz
wireguard-openbsd-01b2421e04cbfd153be5c6642d40c8f87c09f4c5.zip
Add "grouped sessions" which have independent name, options, current window and
so on but where the linked windows are synchronized (ie creating, killing windows and so on are mirrored between the sessions). A grouped session may be created by passing -t to new-session. Had this around for a while, tested by a couple of people.
Diffstat (limited to 'usr.bin/tmux/cmd-rename-window.c')
-rw-r--r--usr.bin/tmux/cmd-rename-window.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/cmd-rename-window.c b/usr.bin/tmux/cmd-rename-window.c
index 722e0394617..e0c13dd7557 100644
--- a/usr.bin/tmux/cmd-rename-window.c
+++ b/usr.bin/tmux/cmd-rename-window.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmd-rename-window.c,v 1.3 2009/07/26 12:58:44 nicm Exp $ */
+/* $OpenBSD: cmd-rename-window.c,v 1.4 2009/10/10 10:02:48 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -53,7 +53,7 @@ cmd_rename_window_exec(struct cmd *self, struct cmd_ctx *ctx)
wl->window->name = xstrdup(data->arg);
options_set_number(&wl->window->options, "automatic-rename", 0);
- server_status_session(s);
+ server_status_window(wl->window);
return (0);
}