Skip to content

Commit

Permalink
Fixed little bug in getCodeSnippet method
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubOnderka committed Nov 23, 2013
1 parent cbd3151 commit e7f9f1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JakubOnderka/PhpConsoleHighlighter/Highlighter.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function getCodeSnippet($source, $lineNumber, $linesBefore = 2, $linesAft
$lines = $this->colorLines($tokenLines);

end($lines);
$lineStrlen = strlen(key($lines));
$lineStrlen = strlen(key($lines) + 1);

$snippet = '';
foreach ($lines as $i => $line) {
Expand Down

0 comments on commit e7f9f1f

Please sign in to comment.