From dae40c57b38c81d5b3619c2f99a02cc509912cd2 Mon Sep 17 00:00:00 2001 From: Dennis Ushakov Date: Mon, 14 May 2012 17:46:41 +0400 Subject: [PATCH] #RUBY-10825 fixed --- .../com/intellij/indentation/IndentationAnnotatorVisitor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/indentation/IndentationAnnotatorVisitor.java b/platform/lang-impl/src/com/intellij/indentation/IndentationAnnotatorVisitor.java index facb47a68a3a..dc42077a1e67 100644 --- a/platform/lang-impl/src/com/intellij/indentation/IndentationAnnotatorVisitor.java +++ b/platform/lang-impl/src/com/intellij/indentation/IndentationAnnotatorVisitor.java @@ -83,8 +83,8 @@ public class IndentationAnnotatorVisitor extends PsiElementVisitor { final int delta = currentIndentLength - lastIndent; if (currentIndentLength % indentInfoLength != 0 || delta > indentInfoLength) { final String message = useTab - ? currentIndentLength + " tabs were used for indentation. Must be indented using " + indentInfoLength + " tabs" - : currentIndentLength + " spaces were used for indentation. Must be indented using " + indentInfoLength + " spaces"; + ? delta + " tabs were used for indentation. Must be indented using " + indentInfoLength + " tabs" + : delta + " spaces were used for indentation. Must be indented using " + indentInfoLength + " spaces"; myHolder.createErrorAnnotation(leaf, message); } lastIndent = currentIndentLength / indentInfoLength * indentInfoLength;