Problem Description
In some situations, the output of some commands breaks syntax highlighting.
Steps to Reproduce
Create an index on a big collection and run
db.currentOp({
'msg' :
{ $exists: true }
,
'command':
{ $exists: true }
,
$or: [
{ 'command.createIndexes':
{ $exists: true }
},
{ 'command.reIndex':
{ $exists: true }
}
]
}).inprog.forEach(function(op)
{
print(op);
}
);
Note that one of the fields contains a Buffer.
Expected Results
Syntax highlighting works well
Actual Results
After the Buffer all the text is white.
Additional Notes
|