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:
Sam Atkins 2024-11-04 16:51:46 +00:00 committed by Andreas Kling
parent a703aad082
commit e6291c8d0e
Notes: github-actions[bot] 2024-11-07 14:12:54 +00:00

View file

@ -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());