diff --git a/connect.py b/connect.py index c55704c24..56ba97621 100755 --- a/connect.py +++ b/connect.py @@ -368,7 +368,7 @@ class SshTty(Tty): self.vim_flag = False data = self.deal_command(data)[0:200] if data is not None: - TtyLog(log=log, datetime=datetime.datetime.now(), cmd=result).save() + TtyLog(log=log, datetime=datetime.datetime.now(), cmd=data).save() data = '' self.vim_data = '' input_mode = False