Skip to content

Commit f0ddda8

Browse files
committed
Don't create listener when changing text in find-replace dialog #2865
Fixes #2865
1 parent 88e83a8 commit f0ddda8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

bundles/org.eclipse.ui.workbench.texteditor/src/org/eclipse/ui/texteditor/FindReplaceDialog.java

+1-5
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,7 @@ public void modifyText(ModifyEvent e) {
148148
// XXX: Workaround for Combo bug on Linux (see bug 404202 and bug 410603)
149149
if (fIgnoreNextEvent) {
150150
fIgnoreNextEvent = false;
151-
return;
152151
}
153-
modificationHandler.run();
154-
fFindField.addModifyListener(event -> {
155-
decorate();
156-
});
157152
}
158153
}
159154

@@ -650,6 +645,7 @@ private Composite createInputPanel(Composite parent) {
650645
fFindModifyListener = new InputModifyListener(() -> {
651646
updateFindString();
652647
updateButtonState(!findReplaceLogic.isActive(SearchOptions.INCREMENTAL));
648+
decorate();
653649
});
654650
fFindField.addModifyListener(fFindModifyListener);
655651

0 commit comments

Comments
 (0)