@@ -2025,7 +2025,7 @@ var ICEcoder = {
2025
2025
parser : parser ,
2026
2026
plugins : prettierPlugins ,
2027
2027
tabWidth : this . indentSize ,
2028
- useTabs : this . indentWithTabs
2028
+ useTabs : "tabs" === this . indentType
2029
2029
}
2030
2030
) ) ;
2031
2031
} catch ( err ) {
@@ -3501,7 +3501,7 @@ var ICEcoder = {
3501
3501
} ,
3502
3502
3503
3503
// Update the settings used when we make a change to them
3504
- useNewSettings : function ( themeURL , codeAssist , lockedNav , tagWrapperCommand , autoComplete , visibleTabs , fontSize , lineWrapping , lineNumbers , showTrailingSpace , matchBrackets , autoCloseTags , autoCloseBrackets , indentWithTabs , indentAuto , indentSize , pluginPanelAligned , scrollbarStyle , bugFilePaths , bugFileCheckTimer , bugFileMaxLines , updateDiffOnSave , autoLogoutMins , refreshFM ) {
3504
+ useNewSettings : function ( themeURL , codeAssist , lockedNav , tagWrapperCommand , autoComplete , visibleTabs , fontSize , lineWrapping , lineNumbers , showTrailingSpace , matchBrackets , autoCloseTags , autoCloseBrackets , indentType , indentAuto , indentSize , pluginPanelAligned , scrollbarStyle , bugFilePaths , bugFileCheckTimer , bugFileMaxLines , updateDiffOnSave , autoLogoutMins , refreshFM ) {
3505
3505
var styleNode , thisCSS , strCSS , activeLineBG ;
3506
3506
3507
3507
// cut out ?microtime= at the end
@@ -3564,7 +3564,7 @@ var ICEcoder = {
3564
3564
this . matchBrackets = matchBrackets ;
3565
3565
this . autoCloseTags = autoCloseTags ;
3566
3566
this . autoCloseBrackets = autoCloseBrackets ;
3567
- this . indentWithTabs = indentWithTabs ;
3567
+ this . indentType = indentType ;
3568
3568
this . indentSize = indentSize ;
3569
3569
this . indentAuto = indentAuto ;
3570
3570
this . scrollbarStyle = scrollbarStyle ;
@@ -3576,7 +3576,7 @@ var ICEcoder = {
3576
3576
this . content . contentWindow [ 'cM' + this . cMInstances [ i ] ] . setOption ( "matchBrackets" , this . matchBrackets ) ;
3577
3577
this . content . contentWindow [ 'cM' + this . cMInstances [ i ] ] . setOption ( "autoCloseTags" , this . autoCloseTags ) ;
3578
3578
this . content . contentWindow [ 'cM' + this . cMInstances [ i ] ] . setOption ( "autoCloseBrackets" , this . autoCloseBrackets ) ;
3579
- this . content . contentWindow [ 'cM' + this . cMInstances [ i ] ] . setOption ( "indentWithTabs" , this . indentWithTabs ) ;
3579
+ this . content . contentWindow [ 'cM' + this . cMInstances [ i ] ] . setOption ( "indentWithTabs" , "tabs" === this . indentType ) ;
3580
3580
this . content . contentWindow [ 'cM' + this . cMInstances [ i ] ] . setOption ( "indentUnit" , this . indentSize ) ;
3581
3581
this . content . contentWindow [ 'cM' + this . cMInstances [ i ] ] . setOption ( "tabSize" , this . indentSize ) ;
3582
3582
this . content . contentWindow [ 'cM' + this . cMInstances [ i ] ] . setOption ( "scrollbarStyle" , this . scrollbarStyle ) ;
@@ -3588,7 +3588,7 @@ var ICEcoder = {
3588
3588
this . content . contentWindow [ 'cM' + this . cMInstances [ i ] + 'diff' ] . setOption ( "matchBrackets" , this . matchBrackets ) ;
3589
3589
this . content . contentWindow [ 'cM' + this . cMInstances [ i ] + 'diff' ] . setOption ( "autoCloseTags" , this . autoCloseTags ) ;
3590
3590
this . content . contentWindow [ 'cM' + this . cMInstances [ i ] + 'diff' ] . setOption ( "autoCloseBrackets" , this . autoCloseBrackets ) ;
3591
- this . content . contentWindow [ 'cM' + this . cMInstances [ i ] + 'diff' ] . setOption ( "indentWithTabs" , this . indentWithTabs ) ;
3591
+ this . content . contentWindow [ 'cM' + this . cMInstances [ i ] + 'diff' ] . setOption ( "indentWithTabs" , "tabs" === this . indentType ) ;
3592
3592
this . content . contentWindow [ 'cM' + this . cMInstances [ i ] + 'diff' ] . setOption ( "indentUnit" , this . indentSize ) ;
3593
3593
this . content . contentWindow [ 'cM' + this . cMInstances [ i ] + 'diff' ] . setOption ( "tabSize" , this . indentSize ) ;
3594
3594
this . content . contentWindow [ 'cM' + this . cMInstances [ i ] + 'diff' ] . setOption ( "scrollbarStyle" , this . scrollbarStyle ) ;
0 commit comments