We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5baf7b5 commit 06540e3Copy full SHA for 06540e3
lib/codemirror.js
@@ -878,7 +878,7 @@ var CodeMirror = (function() {
878
if (n) indentation = lines[n-1].indentation();
879
else indentation = 0;
880
}
881
- else if (how == "smart") indentation = mode.indent(state, line.text.slice(curSpace));
+ else if (how == "smart") indentation = mode.indent(state, line.text.slice(curSpaceString.length));
882
else if (how == "add") indentation = curSpace + options.indentUnit;
883
else if (how == "subtract") indentation = Math.max(0, curSpace - options.indentUnit);
884
var diff = indentation - curSpace;
0 commit comments