Skip to content

Commit

Permalink
Merge pull request #756 from bart-jaskulski/master
Browse files Browse the repository at this point in the history
fix(highlight): #747 Add line offset to highlight line
  • Loading branch information
denis-sokolov committed Apr 12, 2023
2 parents 65015f8 + 7fcd32e commit 3037140
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# CHANGELOG

## Unreleased

* Fixed missing code highlight, which additionally led to issue with switching tabs, between application and all frames ([#747](https://github.com/filp/whoops/issues/747)).

## v2.15.1

* Fixed bug with PrettyPageHandler "*Calling `getFrameFilters` method on null*" ([#751](https://github.com/filp/whoops/pull/751)).
Expand Down
1 change: 1 addition & 0 deletions src/Whoops/Resources/views/frame_code.html.php
Expand Up @@ -31,6 +31,7 @@
?>
<pre class="code-block line-numbers"
data-line="<?php echo $line ?>"
data-line-offset="<?php echo $start ?>"
data-start="<?php echo $start ?>"
><code class="language-php"><?php echo $tpl->escape($code) ?></code></pre>

Expand Down

0 comments on commit 3037140

Please sign in to comment.