@@ -69,7 +69,7 @@ var ICEcoder = {
6969
7070 // Set our aliases
7171 initAliases : function ( ) {
72- var aliasArray = [ "header" , "files" , "fileOptions" , "optionsFile" , "optionsEdit" , "optionsSource" , "optionsHelp" , "filesFrame" , "editor" , "tabsBar" , "findBar" , "content" , "footer" , "nestValid" , "versionsDisplay" , "splitPaneControls" , "splitPaneNamesMain" , "splitPaneNamesDiff" , "charDisplay" , "byteDisplay" , "docExplorer" , "miniMap" , "miniMapContainer" , "miniMapContent" , "functionClassList" ] ;
72+ var aliasArray = [ "header" , "files" , "fileOptions" , "optionsFile" , "optionsEdit" , "optionsSource" , "optionsHelp" , "filesFrame" , "editor" , "tabsBar" , "findBar" , "content" , "terminal" , " footer", "nestValid" , "versionsDisplay" , "splitPaneControls" , "splitPaneNamesMain" , "splitPaneNamesDiff" , "charDisplay" , "byteDisplay" , "docExplorer" , "miniMap" , "miniMapContainer" , "miniMapContent" , "functionClassList" ] ;
7373
7474 // Create our ID aliases
7575 for ( var i = 0 ; i < aliasArray . length ; i ++ ) {
@@ -175,7 +175,9 @@ var ICEcoder = {
175175 // If we need to set the editor sizes
176176 if ( ! dontSetEditor ) {
177177 this . editor . style . width = ICEcoder . content . style . width = ( winW - this . filesW ) - 200 + "px" ;
178+ ICEcoder . terminal . style . width = ( winW - this . filesW ) + "px" ;
178179 ICEcoder . content . style . height = ( winH - headerH - tabsBarH - findBarH - 26 ) + "px" ;
180+ ICEcoder . terminal . style . height = winH + "px" ;
179181
180182 // Resize the CodeMirror instances to match the window size
181183 setTimeout ( function ( ) {
@@ -264,6 +266,7 @@ var ICEcoder = {
264266
265267 get ( 'miniMap' ) . style . display = item == "miniMap" ? 'block' : 'none' ;
266268 get ( 'functionClassList' ) . style . display = item == "functionClassList" ? 'block' : 'none' ;
269+ get ( 'terminal' ) . style . display = item == "terminal" ? 'block' : 'none' ;
267270 if ( item == "miniMap" ) {
268271 top . miniMapInt = setInterval ( function ( ) {
269272 if ( get ( 'miniMapContent' ) . getBoundingClientRect ( ) . height != 0 ) {
@@ -273,6 +276,11 @@ var ICEcoder = {
273276 }
274277 } , 10 ) ;
275278 }
279+ if ( item == "terminal" ) {
280+ setTimeout ( function ( ) {
281+ top . ICEcoder . terminal . contentWindow . document . getElementById ( 'command' ) . focus ( ) ;
282+ } , 0 ) ;
283+ }
276284 } ,
277285
278286 // Set the width of the file manager on demand
@@ -1802,7 +1810,7 @@ var ICEcoder = {
18021810 moveFile : function ( oldName , newName ) {
18031811 var fileName , i ;
18041812
1805- if ( newName ) {
1813+ if ( newName && newName != oldName ) {
18061814 i = top . ICEcoder . openFiles . indexOf ( oldName . replace ( / \| / g, "/" ) ) ;
18071815 if ( i > - 1 ) {
18081816 // rename array item and the tab
0 commit comments