[TwigBundle] Fix line start in twig:lint command

This commit is contained in:
alexandresalome 2012-05-29 23:15:22 +02:00
parent 91936b533d
commit 604a79aba2

View File

@ -121,7 +121,7 @@ EOF
$fileContent = file_get_contents($file);
$lines = explode("\n", $fileContent);
$position = min(0, $line - $context);
$position = max(0, $line - $context);
$max = min(count($lines), $line - 1 + $context);
$result = array();