Break a scrolling sequence if the buffer was modified.

Relevant for things like a shell buffer that can change without any
user commands.
Misc minor changes + regenerate.