Skip to content

Commit

Permalink
fix test if ksyntaxhighlighter is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
lievenhey committed Jan 22, 2024
1 parent 5a974a4 commit 33d1974
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/models/highlightedtext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ class HighlightingImplementation
HighlightingImplementation(KSyntaxHighlighting::Repository* /*repository*/) { }
virtual ~HighlightingImplementation() = default;

virtual QVector<QTextLayout::FormatRange> format(const QString& /*text*/)
virtual QVector<QTextLayout::FormatRange> format(const QString& text)
{
return {};
return {{QTextLayout::FormatRange {0, text.length(), {}}}};
}

virtual void themeChanged() { }
Expand Down

0 comments on commit 33d1974

Please sign in to comment.