aboutsummaryrefslogtreecommitdiff
path: root/wtmux
diff options
context:
space:
mode:
Diffstat (limited to 'wtmux')
-rwxr-xr-xwtmux2
1 files changed, 1 insertions, 1 deletions
diff --git a/wtmux b/wtmux
index aa48386..b577fd8 100755
--- a/wtmux
+++ b/wtmux
@@ -43,7 +43,7 @@ if [ ! -z "${name}" ]; then
fi
fi
- if [ -z "$state" ] || [ "$state" == "attached" ]; then
+ if [ "$state" != "detached" ]; then
tmux attach -t ${name}
fi
else