do not crash in partial_clear if lines are too long

Signed-off-by: Mattias Andrée <maandree@operamail.com>