Excluded EntityType::Pre from clickable types.

This commit is contained in:
23rd 2022-01-17 13:09:57 +03:00 committed by John Preston
parent 79d2052a83
commit 45893ec223

View file

@ -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();
}