diff --git a/src/History.cpp b/src/History.cpp index fa8cfd19..94a05201 100644 --- a/src/History.cpp +++ b/src/History.cpp @@ -436,7 +436,7 @@ CompactHistoryLine::CompactHistoryLine(const TextLine &line, CompactHistoryBlock { _length = line.size(); - if (line.size() > 0) { + if (!line.isEmpty()) { _formatLength = 1; int k = 1;