diff --git a/rsync_ssh.py b/rsync_ssh.py index adda3a2..63fe0ac 100644 --- a/rsync_ssh.py +++ b/rsync_ssh.py @@ -22,8 +22,10 @@ def console_print(host, prefix, output): print(output) -def console_show(window=sublime.active_window()): +def console_show(window=None): """Show console panel""" + if window is None: + sublime.active_window() window.run_command("show_panel", {"panel": "console", "toggle": False})