Fix line numbers in the presence of Windows line endings.

Previously, `\r\n` line endings were double-counted.