diff --git a/Userland/Utilities/tail.cpp b/Userland/Utilities/tail.cpp index c9ad2abf0b8..6ed396c5350 100644 --- a/Userland/Utilities/tail.cpp +++ b/Userland/Utilities/tail.cpp @@ -33,7 +33,7 @@ static ErrorOr find_seek_pos(Core::File& file, int wanted_lines) TRY(file.seek(pos - 1, SeekMode::SetPosition)); auto ch = TRY(file.read_value()); - if (ch == '\n' && (end - pos) > 1) { + if (ch == '\n' && (end - pos) > 0) { lines++; if (lines == wanted_lines) break;