decrement offset when it points to a newline (#10186 followup)
2 files changed