mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 13:11:39 +07:00
IDEA-147128 "Search Everywhere" dialog contains highlighted text from code editor
This commit is contained in:
@@ -388,10 +388,10 @@ public class SearchEverywhereAction extends AnAction implements CustomComponentA
|
||||
return;
|
||||
}
|
||||
String text = "";
|
||||
if (myEditor != null) {
|
||||
text = myEditor.getSelectionModel().getSelectedText();
|
||||
text = text == null ? "" : text.trim();
|
||||
}
|
||||
//if (myEditor != null) {
|
||||
// text = myEditor.getSelectionModel().getSelectedText();
|
||||
// text = text == null ? "" : text.trim();
|
||||
//}
|
||||
|
||||
search.setText(text);
|
||||
search.getTextEditor().setForeground(UIUtil.getLabelForeground());
|
||||
|
||||
Reference in New Issue
Block a user