Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
2af28891
Commit
2af28891
authored
6 years ago
by
Dmitry Batrak
1
Browse files
Options
Download
Email Patches
Plain Diff
speed up opening of editor containing a lot of carets
parent
7c9d45df
Branches unavailable
Tags unavailable
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorImpl.java
+1
-3
...impl/src/com/intellij/openapi/editor/impl/EditorImpl.java
with
1 addition
and
3 deletions
+1
-3
platform/platform-impl/src/com/intellij/openapi/editor/impl/EditorImpl.java
+
1
-
3
View file @
2af28891
...
...
@@ -909,9 +909,7 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
myCaretModel
.
updateVisualPosition
();
// make sure carets won't appear at invalid positions (e.g. on Tab width change)
for
(
Caret
caret
:
getCaretModel
().
getAllCarets
())
{
caret
.
moveToOffset
(
caret
.
getOffset
());
}
getCaretModel
().
doWithCaretMerging
(()
->
myCaretModel
.
getAllCarets
().
forEach
(
caret
->
caret
.
moveToOffset
(
caret
.
getOffset
())));
if
(
myVirtualFile
!=
null
&&
myProject
!=
null
)
{
final
EditorNotifications
editorNotifications
=
EditorNotifications
.
getInstance
(
myProject
);
...
...
This diff is collapsed.
Click to expand it.
小 白蛋
@baidan
mentioned in commit
ca9f3cd0
·
2 years ago
mentioned in commit
ca9f3cd0
mentioned in commit ca9f3cd09b20fcdef8700d5d55ec02efd3ad38bf
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help