Browse Source

Fix deleting a tab by using the indentUnit option

Milan Misak 6 years ago
parent
commit
6c0102bd8f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/codemirror/src/editor.ts

+ 1 - 1
packages/codemirror/src/editor.ts

@@ -1364,7 +1364,7 @@ namespace Private {
       return;
     }
     let cur = doc.getCursor();
-    let tabsize = cm.getOption('tabSize');
+    let tabsize = cm.getOption('indentUnit');
     let chToPrevTabStop = cur.ch - (Math.ceil(cur.ch / tabsize) - 1) * tabsize;
     from = { ch: cur.ch - chToPrevTabStop, line: cur.line };
     let select = doc.getRange(from, cur);