mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-161826 Find and Replace keeps previous data in Replace field but it looks cleared
This commit is contained in:
@@ -347,6 +347,9 @@ public class SearchReplaceComponent extends EditorHeaderComponent implements Dat
|
||||
private void updateReplaceComponent(@NotNull String textToSet) {
|
||||
final int oldCaretPosition = myReplaceTextComponent != null ? myReplaceTextComponent.getCaretPosition() : 0;
|
||||
if (!updateTextComponent(false)) {
|
||||
if (!myReplaceTextComponent.getText().equals(textToSet)) {
|
||||
myReplaceTextComponent.setText(textToSet);
|
||||
}
|
||||
return;
|
||||
}
|
||||
myReplaceTextComponent.setText(textToSet);
|
||||
|
||||
Reference in New Issue
Block a user