Skip to content

Commit

Permalink
Do not attempt to set a layout if there’s none (Fixes #72)
Browse files Browse the repository at this point in the history
  • Loading branch information
remi committed Aug 18, 2014
1 parent 4ab1b7a commit c5dd35f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/teamocil/tmux/window.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def as_tmux
tmux << panes.map(&:as_tmux)

# Select the window layout
tmux << Teamocil::Command::SelectLayout.new(layout: layout)
tmux << Teamocil::Command::SelectLayout.new(layout: layout) if layout

# Set the focus on the right pane or the first one
focused_pane = panes.find(&:focus)
Expand Down

0 comments on commit c5dd35f

Please sign in to comment.