Skip to content

Commit 2bfd010

Browse files
lifenjoinerzufuliu
authored andcommitted
[CSV] Fix row count for group folding
1 parent 447f327 commit 2bfd010

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scintilla/lexers/LexCSV.cxx

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void ColouriseCSVDoc(Sci_PositionU startPos, Sci_Position lengthDoc, int initSty
4747
initStyle = SCE_CSV_COLUMN_0;
4848
Sci_Line lineCurrent = styler.GetLine(startPos);
4949
if (lineCurrent > 0) {
50-
rows = static_cast<int>(lineCurrent % CsvRowGroup);
50+
rows = static_cast<int>((lineCurrent - 1) % CsvRowGroup);
5151
const int lineState = styler.GetLineState(lineCurrent - 1);
5252
if (lineState) {
5353
quoted = true;

0 commit comments

Comments
 (0)