Fix #223
This commit is contained in:
parent
bd1a2778c3
commit
4ed531a6be
|
@ -192,10 +192,18 @@ var editors = {
|
|||
'find', 'find-next', 'find-previous', 'replace', 'replace-all',
|
||||
'format', 'autocomplete', 'jump-to-decl', 'expr-info', 'find-usages', 'toggle-comment',
|
||||
'edit']);
|
||||
|
||||
// remove selected tree node
|
||||
tree.fileTree.cancelSelectedNode();
|
||||
wide.curNode = undefined;
|
||||
wide.curEditor = undefined;
|
||||
wide.refreshOutline();
|
||||
$(".footer .cursor").text('');
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!nextId) {
|
||||
// 不存在打开的编辑器
|
||||
// 编辑器区域不存在打开的 Tab
|
||||
// remove selected tree node
|
||||
tree.fileTree.cancelSelectedNode();
|
||||
wide.curNode = undefined;
|
||||
|
|
|
@ -280,6 +280,11 @@ var menu = {
|
|||
run: function () {
|
||||
menu.saveAllFiles();
|
||||
|
||||
if ($("#buildRun").hasClass("ico-stop")) {
|
||||
wide.stop();
|
||||
return false;
|
||||
}
|
||||
|
||||
var currentPath = editors.getCurrentPath();
|
||||
if (!currentPath) {
|
||||
return false;
|
||||
|
@ -289,11 +294,6 @@ var menu = {
|
|||
return false;
|
||||
}
|
||||
|
||||
if ($("#buildRun").hasClass("ico-stop")) {
|
||||
wide.stop();
|
||||
return false;
|
||||
}
|
||||
|
||||
var request = newWideRequest();
|
||||
request.file = currentPath;
|
||||
request.code = wide.curEditor.getValue();
|
||||
|
|
Loading…
Reference in New Issue