Commit 6cdde061 authored by André Simon's avatar André Simon

allow line-range with disabled highlighting

parent dd3f1865
......@@ -1486,11 +1486,12 @@ void CodeGenerator::processRootState()
if ( currentSyntax->highlightingDisabled() ) {
string line;
while ( getline ( *in, line ) ) {
while ( getline ( *in, line ) && lineNumber < maxLineCnt ) {
++lineNumber;
insertLineNumber ( !firstLine );
flushWs();
firstLine=false;
if (lineNumber>=startLineCntCurFile && lineNumber <=maxLineCnt)
maskString ( *out, line );
}
*out << flush;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment