Skip to content
This repository has been archived by the owner on Jul 21, 2018. It is now read-only.

Commit

Permalink
allow line-range with disabled highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-simon committed Apr 30, 2018
1 parent dd3f186 commit 6cdde06
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/codegenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1486,12 +1486,13 @@ void CodeGenerator::processRootState()

if ( currentSyntax->highlightingDisabled() ) {
string line;
while ( getline ( *in, line ) ) {
while ( getline ( *in, line ) && lineNumber < maxLineCnt ) {
++lineNumber;
insertLineNumber ( !firstLine );
flushWs();
firstLine=false;
maskString ( *out, line );
if (lineNumber>=startLineCntCurFile && lineNumber <=maxLineCnt)
maskString ( *out, line );
}
*out << flush;
return;
Expand Down

0 comments on commit 6cdde06

Please sign in to comment.