Skip to content

Commit

Permalink
dbeaver#2768 Removed auto unindent on new line after delimiter.
Browse files Browse the repository at this point in the history
  • Loading branch information
michelvosje committed Aug 26, 2018
1 parent 29bd3f0 commit a1a5d01
Showing 1 changed file with 0 additions and 5 deletions.
Expand Up @@ -137,11 +137,6 @@ private String getLeadingWhitespace(int offset) {
if (nonWS < 0) {
return "";
}
int indentLength = nonWS - lineOffset;
StringBuilder indent = createIndent();
if (indentLength > indent.length() && scanner.endsWithDelimiter(lineOffset, lineOffset + line.getLength())) {
nonWS -= indent.length();
}

return document.get(lineOffset, nonWS - lineOffset);
} catch (BadLocationException e) {
Expand Down

0 comments on commit a1a5d01

Please sign in to comment.