mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IllegalArgumentException fix
This commit is contained in:
@@ -342,7 +342,7 @@ public class SearchReplaceComponent extends EditorHeaderComponent implements Dat
|
||||
ApplicationManager.getApplication().invokeLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
mySearchTextComponent.setCaretPosition(oldCaretPosition);
|
||||
mySearchTextComponent.setCaretPosition(Math.min(oldCaretPosition, mySearchTextComponent.getText().length()));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user