mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +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
Notes:
sideshowbarker
2024-07-17 20:07:57 +09:00
Author: https://github.com/math2001 Commit: https://github.com/SerenityOS/serenity/commit/9ec826144f3 Pull-request: https://github.com/SerenityOS/serenity/pull/11658 Reviewed-by: https://github.com/bgianfo ✅
@@ -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