From 8556aa191ed11e1872eba89913b9374509687e50 Mon Sep 17 00:00:00 2001 From: anna Date: Fri, 19 Oct 2012 15:24:02 +0200 Subject: [PATCH] find action: escape xml (IDEA-93225) --- .../com/intellij/ide/util/gotoByName/GotoActionModel.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/ide/util/gotoByName/GotoActionModel.java b/platform/lang-impl/src/com/intellij/ide/util/gotoByName/GotoActionModel.java index c97117b004d6..428d128befac 100644 --- a/platform/lang-impl/src/com/intellij/ide/util/gotoByName/GotoActionModel.java +++ b/platform/lang-impl/src/com/intellij/ide/util/gotoByName/GotoActionModel.java @@ -165,8 +165,9 @@ public class GotoActionModel implements ChooseByNameModel, CustomMatcherModel, C if (hit == null) { hit = ((OptionDescription)value).getOption(); } - if (hit.length() > 30) { - hit = hit.substring(0, 30) + "..."; + hit = StringUtil.unescapeXml(hit); + if (hit.length() > 60) { + hit = hit.substring(0, 60) + "..."; } final JBLabel label = new JBLabel(hit.trim()); label.setIcon(EMPTY_ICON);