mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fixed reformatting on paste for short lines
This commit is contained in:
@@ -28,7 +28,6 @@ import com.intellij.openapi.editor.*;
|
||||
import com.intellij.openapi.editor.actionSystem.EditorActionHandler;
|
||||
import com.intellij.openapi.editor.actionSystem.EditorActionManager;
|
||||
import com.intellij.openapi.editor.actionSystem.EditorTextInsertHandler;
|
||||
import com.intellij.openapi.editor.ex.DocumentEx;
|
||||
import com.intellij.openapi.editor.ex.EditorEx;
|
||||
import com.intellij.openapi.extensions.ExtensionPointName;
|
||||
import com.intellij.openapi.extensions.Extensions;
|
||||
@@ -385,6 +384,9 @@ public class PasteHandler extends EditorActionHandler implements EditorTextInser
|
||||
if (endOffset - startOffset > 1000) {
|
||||
DocumentUtil.executeInBulk(editor.getDocument(), true, task);
|
||||
}
|
||||
else {
|
||||
task.run();
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressWarnings("ForLoopThatDoesntUseLoopVariable")
|
||||
|
||||
Reference in New Issue
Block a user