diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/ex/PartialLocalLineStatusTracker.kt b/platform/vcs-impl/src/com/intellij/openapi/vcs/ex/PartialLocalLineStatusTracker.kt index 8afcbe0ffe29..9ec29e0931fc 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/ex/PartialLocalLineStatusTracker.kt +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/ex/PartialLocalLineStatusTracker.kt @@ -320,14 +320,6 @@ class PartialLocalLineStatusTracker(project: Project, } private inner class PartialDocumentTrackerHandler : LineStatusTrackerBase.MyDocumentTrackerHandler() { - override fun onRangeAdded(block: Block) { - super.onRangeAdded(block) - - if (block.ourData.marker == null) { // do not override markers, that are set via other methods of this listener - block.marker = defaultMarker - } - } - override fun onRangeRefreshed(before: Block, after: List) { super.onRangeRefreshed(before, after) @@ -404,6 +396,13 @@ class PartialLocalLineStatusTracker(project: Project, override fun afterBulkRangeChange() { super.afterBulkRangeChange() + blocks.forEach { + // do not override markers, that are set via other methods of this listener + if (it.ourData.marker == null) { + it.marker = defaultMarker + } + } + updateAffectedChangeLists() fireExcludedFromCommitChanged() }