diff options
author | Dani Megert | 2008-11-17 13:45:15 +0000 |
---|---|---|
committer | Dani Megert | 2008-11-17 13:45:15 +0000 |
commit | 602e3fd430ca0efdee5990381deab509a92a084d (patch) | |
tree | 1c191d2209b5ebc6d45fc28b375e0c31f7fa5933 | |
parent | cfca646da3a2d21012523766c3183a81f30038d4 (diff) | |
download | eclipse.platform.text-R3_4_maintenance.tar.gz eclipse.platform.text-R3_4_maintenance.tar.xz eclipse.platform.text-R3_4_maintenance.zip |
Backported fix for bug 244667.r342_v20081119-0800R3_4_2R3_4_maintenance
-rw-r--r-- | org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/CompletionProposalPopup.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/CompletionProposalPopup.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/CompletionProposalPopup.java index dcc1e7b32c1..86bdf30d3ec 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/CompletionProposalPopup.java +++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/contentassist/CompletionProposalPopup.java @@ -81,6 +81,8 @@ import org.eclipse.jface.text.AbstractInformationControlManager.Anchor; import org.eclipse.jface.util.Geometry; import org.eclipse.jface.viewers.StyledString; +import org.eclipse.osgi.util.TextProcessor; + /** * This class is used to present proposals to the user. If additional @@ -1609,7 +1611,7 @@ class CompletionProposalPopup implements IContentAssistListener { int start= ((ICompletionProposalExtension3)proposal).getPrefixCompletionStart(fContentAssistSubjectControlAdapter.getDocument(), fFilterOffset); CharSequence insertion= ((ICompletionProposalExtension3)proposal).getPrefixCompletionText(fContentAssistSubjectControlAdapter.getDocument(), fFilterOffset); if (insertion == null) - insertion= proposal.getDisplayString(); + insertion= TextProcessor.deprocess(proposal.getDisplayString()); try { int prefixLength= fFilterOffset - start; int relativeCompletionOffset= Math.min(insertion.length(), prefixLength); |