mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:17: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:
parent
66dcb0123a
commit
9ec826144f
1 changed files with 2 additions and 2 deletions
|
@ -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 {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue