From caec6a2d9634d3f8cffe2b07c7afc11271a7f89d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Re=CC=81mi=20Pre=CC=81vost?= Date: Wed, 20 Jul 2011 13:20:27 -0400 Subject: [PATCH] Do not rename a session if no name is provided --- lib/teamocil/layout.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/teamocil/layout.rb b/lib/teamocil/layout.rb index 1c118c3..0e3d2de 100644 --- a/lib/teamocil/layout.rb +++ b/lib/teamocil/layout.rb @@ -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