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:
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
|
// 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 {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue