Do not rename a session if no name is provided

This commit is contained in:
Rémi Prévost 2011-07-20 13:20:27 -04:00
parent 8ae45f570e
commit caec6a2d96

View File

@ -19,7 +19,7 @@ module Teamocil
if @layout["session"].nil?
windows = @layout["windows"]
else
output << "tmux rename-session #{@layout["session"]["name"]}"
output << "tmux rename-session #{@layout["session"]["name"]}" if @layout["session"]["name"]
windows = @layout["session"]["windows"]
end