mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-05 14:42:50 +02: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:
committed by
Andreas Kling
parent
66dcb0123a
commit
9ec826144f
@@ -630,11 +630,11 @@ Optional<TextDocumentSpan> TextDocument::first_non_skippable_span_after(const Te
|
||||
}
|
||||
// Skip skippable spans
|
||||
for (; i < m_spans.size(); ++i) {
|
||||
if (m_spans[i].is_skippable)
|
||||
if (!m_spans[i].is_skippable)
|
||||
break;
|
||||
}
|
||||
if (i < m_spans.size())
|
||||
return m_spans[i + 1];
|
||||
return m_spans[i];
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user