Merge pull request #48 from kula-shakerz/master

Fixes issue where the wrong line gets highlighted
This commit is contained in:
Filipe Dobreira
2013-06-05 10:53:42 -07:00
+1
View File
@@ -83,6 +83,7 @@
// the $line is 1-indexed, we nab -1 where needed to account for this
$range = $frame->getFileLines($line - 8, 10);
$range = array_map(function($line){ return empty($line) ? ' ' : $line;}, $range);
$start = key($range) + 1;
$code = join("\n", $range);
?>