Skip to content

Commit

Permalink
[CSV] Fix row count for group folding
Browse files Browse the repository at this point in the history
  • Loading branch information
lifenjoiner authored and zufuliu committed Dec 20, 2024
1 parent 447f327 commit 2bfd010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scintilla/lexers/LexCSV.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void ColouriseCSVDoc(Sci_PositionU startPos, Sci_Position lengthDoc, int initSty
initStyle = SCE_CSV_COLUMN_0;
Sci_Line lineCurrent = styler.GetLine(startPos);
if (lineCurrent > 0) {
rows = static_cast<int>(lineCurrent % CsvRowGroup);
rows = static_cast<int>((lineCurrent - 1) % CsvRowGroup);
const int lineState = styler.GetLineState(lineCurrent - 1);
if (lineState) {
quoted = true;
Expand Down

0 comments on commit 2bfd010

Please sign in to comment.