Merge pull request #149 from kelianchun/dev

Dev
pull/154/head
kelianchun 2016-03-23 12:40:06 +08:00
commit dc2ea0d6bf
1 changed files with 4 additions and 4 deletions

View File

@ -370,10 +370,10 @@ class WebTerminalHandler(tornado.websocket.WebSocketHandler):
data = self.term.deal_command(self.term.data)[0:200]
if len(data) > 0:
TtyLog(log=self.log, datetime=datetime.datetime.now(), cmd=data).save()
data = self.term.deal_command(self.term.data)[0:200]
if len(data) > 0:
TtyLog(log=self.log, datetime=datetime.datetime.now(),
cmd=data).save()
else:
data = self.term.deal_command(self.term.data)[0:200]
if len(data) > 0:
TtyLog(log=self.log, datetime=datetime.datetime.now(), cmd=data).save()
self.term.vim_data = ''
self.term.data = ''
self.term.input_mode = False