From ac370231fcfc363eb07e19f5387de2c11181ba6f Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Fri, 4 Sep 2015 14:24:49 +0300 Subject: [PATCH] EA-72528 - IOOBE: LineSet.checkLineIndex --- .../src/com/intellij/openapi/vcs/ex/LineStatusTracker.java | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/ex/LineStatusTracker.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/ex/LineStatusTracker.java index 28ca45abe012..350a3ef497b3 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/ex/LineStatusTracker.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/ex/LineStatusTracker.java @@ -752,6 +752,7 @@ public class LineStatusTracker { private void markLinesUnchanged(int startLine, int endLine) { if (myDocument.getTextLength() == 0) return; // empty document has no lines + if (startLine == endLine) return; ((DocumentImpl)myDocument).clearLineModificationFlags(startLine, endLine); }