From 6a51bd1a1c69065d1d9b898b27a14568cccb412c Mon Sep 17 00:00:00 2001 From: kelianchun_miller Date: Sat, 26 Mar 2016 00:01:48 +0800 Subject: [PATCH] pull issue #120 remove ps1 --- run_server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_server.py b/run_server.py index 00a6eb8cf..326cb7f1d 100755 --- a/run_server.py +++ b/run_server.py @@ -364,7 +364,7 @@ class WebTerminalHandler(tornado.websocket.WebSocketHandler): self.term.input_mode = True if str(jsondata['data']) in ['\r', '\n', '\r\n']: if self.term.vim_flag: - match = re.compile(r'\x1b\[\?1049', re.X).findall(self.vim_data) + match = re.compile(r'\x1b\[\?1049', re.X).findall(self.term.vim_data) if match: if self.term.vim_end_flag or len(match) == 2: self.term.vim_flag = False