Only enforce the history limit if we did the bump.
Adjust the types passed to drawFg/drawBg.
Added ASSERTions to Buffer::delimitSelection().
Rename some scroll-related member funcs.