update connect.py

pull/26/head
kelianchun_miller 2015-11-23 12:47:02 +08:00
parent a9196ef149
commit ee218a5fed
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ class Tty(object):
""", re.X)
result_command = control_char.sub('', result_command.strip())
if not self.vim_flag:
if result_command.startswith('vi'):
if result_command.startswith('vi') or result_command.startswith('fg'):
self.vim_flag = True
return result_command.decode('utf8', "ignore")
else: