mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
LibWeb/CSS: Correct position indicator when dumping a TokenStream
Since b645e26e9b
, m_index points at the
"next" token, not the one that we're currently on.
This commit is contained in:
parent
a703aad082
commit
e6291c8d0e
Notes:
github-actions[bot]
2024-11-07 14:12:54 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/e6291c8d0eb Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2202
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ public:
|
|||
dbgln("Dumping all tokens:");
|
||||
for (size_t i = 0; i < m_tokens.size(); ++i) {
|
||||
auto& token = m_tokens[i];
|
||||
if (i == m_index)
|
||||
if (i == m_index - 1)
|
||||
dbgln("-> {}", token.to_debug_string());
|
||||
else
|
||||
dbgln(" {}", token.to_debug_string());
|
||||
|
|
Loading…
Reference in a new issue