summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/session.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2009-12-03 22:50:09 +0000
committernicm <nicm@openbsd.org>2009-12-03 22:50:09 +0000
commit197ec97c8443d9515f7229a99d8cf5b485aa116b (patch)
tree82c19c9b632b9376bb8ab52e8dcaf1e4525abe49 /usr.bin/tmux/session.c
parentStop the IdleHold timer when going to idle state. This makes it a bit (diff)
downloadwireguard-openbsd-197ec97c8443d9515f7229a99d8cf5b485aa116b.tar.xz
wireguard-openbsd-197ec97c8443d9515f7229a99d8cf5b485aa116b.zip
Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last
time now I've configured emacs to make them displayed in really annoying colours...
Diffstat (limited to 'usr.bin/tmux/session.c')
-rw-r--r--usr.bin/tmux/session.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/tmux/session.c b/usr.bin/tmux/session.c
index 4f243684854..4890ef8d1c5 100644
--- a/usr.bin/tmux/session.c
+++ b/usr.bin/tmux/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.14 2009/11/26 21:37:13 nicm Exp $ */
+/* $OpenBSD: session.c,v 1.15 2009/12/03 22:50:10 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -165,7 +165,7 @@ session_create(const char *name, const char *cmd, const char *cwd,
s->name = xstrdup(name);
else
xasprintf(&s->name, "%u", i);
-
+
if (cmd != NULL) {
if (session_new(s, NULL, cmd, cwd, idx, cause) == NULL) {
session_destroy(s);
@@ -208,7 +208,7 @@ session_destroy(struct session *s)
winlink_remove(&s->windows, RB_ROOT(&s->windows));
xfree(s->name);
-
+
for (i = 0; i < ARRAY_LENGTH(&dead_sessions); i++) {
if (ARRAY_ITEM(&dead_sessions, i) == NULL) {
ARRAY_SET(&dead_sessions, i, s);
@@ -233,7 +233,7 @@ session_index(struct session *s, u_int *i)
/* Create a new window on a session. */
struct winlink *
-session_new(struct session *s,
+session_new(struct session *s,
const char *name, const char *cmd, const char *cwd, int idx, char **cause)
{
struct window *w;
@@ -463,7 +463,7 @@ session_group_index(struct session_group *sg)
/*
* Add a session to the session group containing target, creating it if
- * necessary.
+ * necessary.
*/
void
session_group_add(struct session *target, struct session *s)