From ad722a9f062d44bae109896121c0d0fd3ee9a5c9 Mon Sep 17 00:00:00 2001 From: kperdlich Date: Fri, 18 Feb 2022 23:07:43 +0100 Subject: [PATCH] Shell: Use an opaque default color for BarewordLiteral Use an opaque default color for BarewordLiteral in Syntax Highlighter to avoid transparent barewords. --- Userland/Shell/SyntaxHighlighter.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Userland/Shell/SyntaxHighlighter.cpp b/Userland/Shell/SyntaxHighlighter.cpp index 64a819cca0..24e938ea84 100644 --- a/Userland/Shell/SyntaxHighlighter.cpp +++ b/Userland/Shell/SyntaxHighlighter.cpp @@ -130,6 +130,8 @@ private: m_is_first_in_command = false; } else if (node->text().starts_with("-")) { span.attributes.color = m_palette.syntax_preprocessor_statement(); + } else { + span.attributes.color = m_palette.base_text(); } } virtual void visit(const AST::CastToCommand* node) override