mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
@@ -181,7 +181,7 @@ class WhiteSpace {
|
||||
myIndentSpaces = 0;
|
||||
break;
|
||||
case '\t':
|
||||
myIndentSpaces += tabSize;
|
||||
myIndentSpaces += tabSize - (mySpaces % tabSize);
|
||||
break;
|
||||
default: mySpaces++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user