From 929eec305317aaacfb8efa02a801b05d6cdcb0ae Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Wed, 11 Apr 2007 14:47:06 +0000 Subject: [PATCH] Temporary workaround for bug 181139 (Patch by Sergey Prigogin) --- .../org/eclipse/cdt/internal/ui/text/CAutoIndentStrategy.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CAutoIndentStrategy.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CAutoIndentStrategy.java index dfb41038cc2..5a945797e9f 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CAutoIndentStrategy.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CAutoIndentStrategy.java @@ -595,7 +595,8 @@ public class CAutoIndentStrategy extends DefaultIndentLineAutoEditStrategy { return; // bail out insertLength= subtractIndent(correct, current, addition); - if (l != first && temp.get(lineOffset, lineLength).trim().length() != 0) { + // workaround for bug 181139 + if (/*l != first && */temp.get(lineOffset, lineLength).trim().length() != 0) { isIndentDetected= true; if (insertLength == 0) { // no adjustment needed, bail out