diff --git a/Src/DiffWrapper.cpp b/Src/DiffWrapper.cpp index 9b162b570e5..c990d560837 100644 --- a/Src/DiffWrapper.cpp +++ b/Src/DiffWrapper.cpp @@ -279,7 +279,8 @@ static std::tuple> GetCommentsFilteredT } else { - allTextIsComment[i - startLine] = true; + allTextIsComment[i - startLine] = + (nActualItems > 0 && blocks[0].m_nColorIndex == COLORINDEX_COMMENT); for (int j = 0; j < nActualItems; ++j) { CrystalLineParser::TEXTBLOCK& block = blocks[j];