Fixed the parenthesis around the expression around line indent calculation

This commit is contained in:
Sheetal Nandi 2014-09-02 21:13:11 -07:00
parent 816b018ae2
commit 7181184e32

View File

@ -299,7 +299,7 @@ module ts {
for (; pos < end && isWhiteSpace(currentSourceFile.text.charCodeAt(pos)); pos++) {
if (currentSourceFile.text.charCodeAt(pos) === CharacterCodes.tab) {
// Tabs = TabSize = indent size and go to next tabStop
currentLineIndent += (getIndentSize() - currentLineIndent % getIndentSize());
currentLineIndent += getIndentSize() - (currentLineIndent % getIndentSize());
}
else {
// Single space