first and last now accept 1-based line numbers, instead of 0-based.