This commit is contained in:
Kovid Goyal
2017-12-16 08:54:55 +05:30
parent 8a9ee6f3f5
commit 3cce9b1c38

View File

@@ -100,7 +100,7 @@ def create_session(opts, args=None, special_window=None):
ans.tabs[-1].layout = current_layout
if special_window is None:
cmd = args.args if args and args.args else [shell_path]
if args.title:
if getattr(args, 'title', None):
from kitty.tabs import SpecialWindow
ans.add_window(SpecialWindow(cmd, override_title=args.title))
else: