Commit 5afd1359 authored by kelianchun's avatar kelianchun Committed by ibuler

fix bug index out of range (#210)

parent 9096a6e5
......@@ -240,6 +240,7 @@ class TermLogRecorder(object):
TermLogRecorder.loglist[str(id)] = [self]
def write(self, msg):
"""
if self.recoder and (not self._in_vim):
if self.commands.__len__() == 0:
self._stream.feed(msg)
......@@ -256,6 +257,7 @@ class TermLogRecorder(object):
self._screen.reset()
else:
self._command()
"""
try:
self.write_message(msg)
except:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment