teamocil 1.0.3 → 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/teamocil/tmux/window.rb +2 -2
- data/lib/teamocil/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd9c25b9a34c7f2b8efa0b353640523a9c6ad8f4
|
4
|
+
data.tar.gz: 4e4db6b9d019b46b0820d8d7a8d583afdb1250e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30df185031fc3ef4f5c530bc29b10f525312ca12f34d6590732f315ddf6b62cca9214b8ae5639cfb7d815bc4446181789f7f07a57ecf1fb73fa5969118cd5d13
|
7
|
+
data.tar.gz: 70d528fc0064ae4ec5f2409737fe21ff0b2aac5dfd2f4cfbf26b6bbf1406594c09d5b9677d30573222f681d14ff3d24f7dc6a2ac4e7f15df7c50d3382a19fa37
|
data/lib/teamocil/tmux/window.rb
CHANGED
@@ -5,7 +5,7 @@ module Teamocil
|
|
5
5
|
super
|
6
6
|
|
7
7
|
# Make sure paths like `~/foo/bar` work
|
8
|
-
self.root = File.expand_path(root)
|
8
|
+
self.root = File.expand_path(root) if root
|
9
9
|
|
10
10
|
self.panes ||= splits
|
11
11
|
self.panes = panes.each_with_index.map do |pane, index|
|
@@ -36,7 +36,7 @@ module Teamocil
|
|
36
36
|
tmux << panes.map(&:as_tmux)
|
37
37
|
|
38
38
|
# Select the window layout
|
39
|
-
tmux << Teamocil::Command::SelectLayout.new(layout: layout)
|
39
|
+
tmux << Teamocil::Command::SelectLayout.new(layout: layout) if layout
|
40
40
|
|
41
41
|
# Set the focus on the right pane or the first one
|
42
42
|
focused_pane = panes.find(&:focus)
|
data/lib/teamocil/version.rb
CHANGED