Fix bug in `mark-all' that made it skip lines