diff options
author | Dani Megert | 2010-02-23 15:54:03 +0000 |
---|---|---|
committer | Dani Megert | 2010-02-23 15:54:03 +0000 |
commit | 43294c0343b2a684c55ddc1c0f7b473c0da9da63 (patch) | |
tree | 4ad98f58f7066f2acd2910b53c328a1e9fc3fc0e | |
parent | 22ed5bccb28e37b72f112fd0a505f923f67668cb (diff) | |
download | eclipse.platform.text-43294c0343b2a684c55ddc1c0f7b473c0da9da63.tar.gz eclipse.platform.text-43294c0343b2a684c55ddc1c0f7b473c0da9da63.tar.xz eclipse.platform.text-43294c0343b2a684c55ddc1c0f7b473c0da9da63.zip |
Committed Anton's patch to fix bug 178203: [projection] Eclipse is too eager to unfold code
-rw-r--r-- | org.eclipse.jface.text/projection/org/eclipse/jface/text/source/projection/ProjectionViewer.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/org.eclipse.jface.text/projection/org/eclipse/jface/text/source/projection/ProjectionViewer.java b/org.eclipse.jface.text/projection/org/eclipse/jface/text/source/projection/ProjectionViewer.java index cf2a41bc282..6aedcf3e8b8 100644 --- a/org.eclipse.jface.text/projection/org/eclipse/jface/text/source/projection/ProjectionViewer.java +++ b/org.eclipse.jface.text/projection/org/eclipse/jface/text/source/projection/ProjectionViewer.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2009 IBM Corporation and others. + * Copyright (c) 2000, 2010 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -8,6 +8,7 @@ * Contributors: * IBM Corporation - initial API and implementation * Tom Eicher (Avaloq Evolution AG) - block selection mode + * Anton Leherbauer <anton.leherbauer@windriver.com> - [projection] Eclipse is too eager to unfold code - http://bugs.eclipse.org/178203 *******************************************************************************/ package org.eclipse.jface.text.source.projection; @@ -1383,7 +1384,7 @@ public class ProjectionViewer extends SourceViewer implements ITextViewerExtensi try { int numberOfLines= e.getDocument().getNumberOfLines(e.getOffset(), replaceLength); if (numberOfLines > 1 || fDeletedLines > 1) - fProjectionAnnotationModel.expandAll(master.getOffset(), master.getLength()); + fProjectionAnnotationModel.expandAll(master.getOffset(), replaceLength); } catch (BadLocationException x) { } } |