Merge pull request #166 from xbreezes/master

Fix #165
This commit is contained in:
Liang Ding 2014-11-27 09:27:03 +08:00
commit c90bdfe0e8
1 changed files with 8 additions and 2 deletions

View File

@ -402,7 +402,13 @@ var wide = {
switch (data.cmd) {
case 'run': // 正在运行
bottomGroup.fillOutput($('.bottom-window-group .output > div').html() + '<pre>' + data.output + '</pre>');
if(!wide.curProcessId){
bottomGroup.fillOutput($('.bottom-window-group .output > div').html() + '<pre>' + data.output + '</pre>');
}else{
bottomGroup.fillOutput($('.bottom-window-group .output > div').html().replace(/<\/pre>$/g, data.output + '</pre>'));
}
wide.curProcessId = data.pid;
break;
@ -706,4 +712,4 @@ $(document).ready(function () {
editors.init();
windows.init();
bottomGroup.init();
});
});