mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
AC/C++: OC-9003 Trailing whitespaces are stripped in PCH during typing +review CR-IC
This commit is contained in:
+4
-1
@@ -41,6 +41,7 @@ import com.intellij.openapi.fileTypes.FileTypeEvent;
|
||||
import com.intellij.openapi.fileTypes.FileTypeListener;
|
||||
import com.intellij.openapi.fileTypes.FileTypeManager;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.Comparing;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.openapi.vfs.VirtualFileAdapter;
|
||||
import com.intellij.openapi.vfs.VirtualFileEvent;
|
||||
@@ -347,7 +348,9 @@ class TextEditorComponent extends JBLoadingPanel implements DataProvider {
|
||||
// File can be invalidated after file changes name (extension also
|
||||
// can changes). The editor should be removed if it's invalid.
|
||||
updateValidProperty();
|
||||
updateHighlighters();
|
||||
if (Comparing.equal(e.getFile(), myFile) && !Comparing.equal(e.getOldValue(), e.getNewValue())) {
|
||||
updateHighlighters();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user