Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Commit 2b58e60

Browse files
committed
Remove code that was added based on the wrong assumption of using indentUnit CM option for tab size.
1 parent cd40470 commit 2b58e60

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/editor/Editor.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2005,7 +2005,6 @@ define(function (require, exports, module) {
20052005

20062006
if (oldValue !== newValue) {
20072007
this._currentOptions[prefName] = newValue;
2008-
var useTabChar = this._currentOptions[USE_TAB_CHAR];
20092008

20102009
if (prefName === USE_TAB_CHAR) {
20112010
this._codeMirror.setOption(cmOptions[prefName], newValue);
@@ -2018,9 +2017,6 @@ define(function (require, exports, module) {
20182017
} else if (prefName === SCROLL_PAST_END && this._visibleRange) {
20192018
// Do not apply this option to inline editors
20202019
return;
2021-
} else if ((useTabChar && prefName === SPACE_UNITS) || (!useTabChar && prefName === TAB_SIZE)) {
2022-
// This change conflicts with the useTabChar setting, so do not change the CodeMirror option
2023-
return;
20242020
} else {
20252021
this._codeMirror.setOption(cmOptions[prefName], newValue);
20262022
}

0 commit comments

Comments
 (0)