From eef3a215a14c5ca38b9731b63c55b5acbcb85f73 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 11 Apr 2018 14:42:07 +0530 Subject: [PATCH] ... --- kitty/boss.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/boss.py b/kitty/boss.py index 120063e37..421376e39 100644 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -479,11 +479,11 @@ class Boss: output += str(s.linebuf.line(i)) return output - def _run_kitten(self, kitten, args, type_of_input='none'): + def _run_kitten(self, kitten, args=(), type_of_input='none'): w = self.active_window tab = self.active_tab if w is not None and tab is not None and w.overlay_for is None: - orig_args = args[:] + orig_args, args = list(args), list(args) args[0:0] = [config_dir, kitten] if type_of_input in ('text', 'history', 'ansi', 'ansi-history'): data = w.as_text(as_ansi='ansi' in type_of_input, add_history='history' in type_of_input).encode('utf-8')