IDEA-100693 copy/paste of a whole line adds extra space indent

Correct white space info construction on formatting - handle a situation when indent space contains tabulations after white spaces
This commit is contained in:
Denis.Zhdanov
2013-02-14 13:20:22 +04:00
parent baddfe7123
commit ecfd5acf5e
@@ -181,7 +181,7 @@ class WhiteSpace {
myIndentSpaces = 0;
break;
case '\t':
myIndentSpaces += tabSize;
myIndentSpaces += tabSize - (mySpaces % tabSize);
break;
default: mySpaces++;
}