Fix window specific root path

If a session root was set, any window layouts loaded with a window root
set caused the window root to be ignored. This resolves the issue.
This commit is contained in:
2012-05-24 00:02:51 +01:00
parent ae70bae022
commit 8155740ceb

View File

@@ -17,6 +17,7 @@ new_window() {
if [ -n "$2" ]; then local command=("$2"); fi
if [ -n "$window" ]; then local winarg=(-n "$window"); fi
if [ -n "$window_root" ]; then cd "$window_root"; fi
tmux new-window -t "$session:" "${winarg[@]}" "${command[@]}"
}