From 45893ec22315ff728f6d3e05f6caa9092ae030c6 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Mon, 17 Jan 2022 13:09:57 +0300 Subject: [PATCH] Excluded EntityType::Pre from clickable types. --- ui/text/text.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/text/text.cpp b/ui/text/text.cpp index bec2761..44a1196 100644 --- a/ui/text/text.cpp +++ b/ui/text/text.cpp @@ -491,7 +491,8 @@ bool Parser::checkEntities() { const auto isSingleLine = !trimmed.isEmpty() && ranges::none_of(trimmed, IsNewline); - if (isSingleLine) { + // TODO: remove trimming. + if (isSingleLine && (entityType == EntityType::Code)) { _monos.push_back({ .text = text, .type = entityType }); monoIndex = _monos.size(); }