mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-13 09:19:13 +07:00
editors should only handle bulk changes of their own documents (otherwise main editor constantly scrolls during test run)
This commit is contained in:
@@ -6223,11 +6223,15 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
|
||||
class EditorDocumentBulkUpdateAdapter implements DocumentBulkUpdateListener {
|
||||
@Override
|
||||
public void updateStarted(@NotNull Document doc) {
|
||||
if (doc != getDocument()) return;
|
||||
|
||||
bulkUpdateStarted();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateFinished(@NotNull Document doc) {
|
||||
if (doc != getDocument()) return;
|
||||
|
||||
bulkUpdateFinished();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -602,11 +602,15 @@ public class SoftWrapModelImpl implements SoftWrapModelEx, PrioritizedDocumentLi
|
||||
|
||||
@Override
|
||||
public void updateStarted(@NotNull Document doc) {
|
||||
if (doc != myEditor.getDocument()) return;
|
||||
|
||||
myBulkUpdateInProgress = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateFinished(@NotNull Document doc) {
|
||||
if (doc != myEditor.getDocument()) return;
|
||||
|
||||
myBulkUpdateInProgress = false;
|
||||
if (!isSoftWrappingEnabled()) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user