Move Cursor::scroll() to Window::scroll() and improve.

scroll() has now a $repeat argument.
scroll() does not change the cursor positions.
Scroll if space is not enough for autocompletion.

When printing all solutions from an autocompleter (the menu), we scroll
up if there is no enough space below the cursor.