1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:27:35 +00:00

LibGUI: Don't skip non-skipable spans on ctrl+right

Just a couple of typos in
`TextDocument::first_non_skippable_span_after`.
This commit is contained in:
Mathieu PATUREL 2022-01-06 10:19:31 +11:00 committed by Andreas Kling
parent 66dcb0123a
commit 9ec826144f

View file

@ -630,11 +630,11 @@ Optional<TextDocumentSpan> TextDocument::first_non_skippable_span_after(const Te
} }
// Skip skippable spans // Skip skippable spans
for (; i < m_spans.size(); ++i) { for (; i < m_spans.size(); ++i) {
if (m_spans[i].is_skippable) if (!m_spans[i].is_skippable)
break; break;
} }
if (i < m_spans.size()) if (i < m_spans.size())
return m_spans[i + 1]; return m_spans[i];
return {}; return {};
} }