This commit is contained in:
Kovid Goyal 2018-01-08 13:57:43 +05:30
parent db92af68e9
commit d2fdb1c1eb
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -110,10 +110,9 @@ def create_session(opts, args=None, special_window=None, cwd_from=None):
if special_window is None: if special_window is None:
cmd = args.args if args and args.args else [shell_path] cmd = args.args if args and args.args else [shell_path]
from kitty.tabs import SpecialWindow from kitty.tabs import SpecialWindow
k = {'cwd_from': cwd_from}
if getattr(args, 'title', None): if getattr(args, 'title', None):
ans.add_special_window(SpecialWindow(cmd, override_title=args.title, cwd_from=cwd_from)) k['override_title'] = args.title
else: special_window = SpecialWindow(cmd, **k)
ans.add_special_window(SpecialWindow(cmd, cwd_from=cwd_from))
else:
ans.add_special_window(special_window) ans.add_special_window(special_window)
return ans return ans