We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 743891e commit 79a9233Copy full SHA for 79a9233
1 file changed
jme3-glsl-highlighter/src/com/jme3/gde/glsl/highlighter/editor/GlslIndentTask.java
@@ -60,7 +60,7 @@ public void reindent() throws BadLocationException {
60
int startOffsetBounded = Math.max(startOffset - 1, 0);
61
62
//Check if previous line ends with a {
63
- int previousLineLength = Math.max(startOffset - 1 - context.lineStartOffset(startOffsetBounded), 0);
+ int previousLineLength = Math.max(startOffsetBounded - context.lineStartOffset(startOffsetBounded), 0);
64
String previousLine = doc.getText(context.lineStartOffset(startOffsetBounded), previousLineLength);
65
66
//Hook other reasons for changes in indentation into this for loop
0 commit comments