mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 01:09:25 +00:00
HackStudio: Mark whitespace tokens as skippable GTextDocumentSpans
This makes Ctrl+Left/Right jump over whitespace, which feels nice :^)
This commit is contained in:
@@ -483,6 +483,7 @@ static void rehighlight()
|
||||
auto style = style_for_token_type(token.m_type);
|
||||
span.color = style.color;
|
||||
span.font = style.font;
|
||||
span.is_skippable = token.m_type == CppToken::Type::Whitespace;
|
||||
spans.append(span);
|
||||
}
|
||||
current_editor().document().set_spans(spans);
|
||||
|
||||
Reference in New Issue
Block a user