Merge branch 'dev' into exec_cmd

This commit is contained in:
ibuler
2015-11-23 15:36:24 +08:00
16 changed files with 146 additions and 588 deletions

View File

@@ -158,7 +158,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: