mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01: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
|
|
@ -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 New Issue
Block a user