Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2014-09-23 17:29:16 +0000
committerMarkus Keller2014-09-23 17:29:16 +0000
commit22b991e05e1d86e9fce2ae9c840f0964998296c8 (patch)
tree996c0c61e40940b3d80231316b930dffeaeb4a53
parent76a4576bcc03624b248334e9eeafabdc500b3428 (diff)
downloadeclipse.platform.text-22b991e05e1d86e9fce2ae9c840f0964998296c8.tar.gz
eclipse.platform.text-22b991e05e1d86e9fce2ae9c840f0964998296c8.tar.xz
eclipse.platform.text-22b991e05e1d86e9fce2ae9c840f0964998296c8.zip
Bug 444831: [projection] Selection lost when trying to cut folded textI20140930-0800
-rw-r--r--org.eclipse.jface.text/projection/org/eclipse/jface/text/source/projection/ProjectionViewer.java2
1 files changed, 1 insertions, 1 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 cc28cc007e0..7e3d27ef0f5 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
@@ -1431,7 +1431,7 @@ public class ProjectionViewer extends SourceViewer implements ITextViewerExtensi
if (redraws()) {
selection= (ITextSelection) getSelection();
if (exposeModelRange(new Region(selection.getOffset(), selection.getLength())))
- return;
+ setSelection(selection);
if (selection.getLength() == 0)
copyMarkedRegion(true);

Back to the top