update api.py

pull/26/head
kelianchun_miller 2015-11-04 14:56:50 +08:00
parent d182736bd7
commit 5e20ac0454
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ def deal_command(str_r, ssh):
global VIM_FLAG global VIM_FLAG
global VIM_COMMAND global VIM_COMMAND
if not VIM_FLAG: if not VIM_FLAG:
if result_command.startswith('vim'): if result_command.startswith('vim') or result_command.startswith('vi') :
VIM_FLAG = True VIM_FLAG = True
VIM_COMMAND = result_command VIM_COMMAND = result_command
return result_command.decode('utf8',"ignore") return result_command.decode('utf8',"ignore")