mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
vcs: do not change file status on trivial document modifications
This commit is contained in:
@@ -113,6 +113,7 @@ public class FileStatusManagerImpl extends FileStatusManager implements ProjectC
|
||||
DocumentAdapter documentListener = new DocumentAdapter() {
|
||||
@Override
|
||||
public void documentChanged(DocumentEvent event) {
|
||||
if (event.getOldLength() == 0 && event.getNewLength() == 0) return;
|
||||
VirtualFile file = FileDocumentManager.getInstance().getFile(event.getDocument());
|
||||
if (file != null) {
|
||||
refreshFileStatusFromDocument(file, event.getDocument());
|
||||
|
||||
Reference in New Issue
Block a user