From 5afd135967ee39b5350f707302ef00daf9cd6401 Mon Sep 17 00:00:00 2001 From: kelianchun Date: Fri, 22 Apr 2016 11:49:50 +0800 Subject: [PATCH] fix bug index out of range (#210) --- jlog/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jlog/views.py b/jlog/views.py index ff1239e8e..d8a4268d1 100644 --- a/jlog/views.py +++ b/jlog/views.py @@ -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: