mainview: statusbar and viewport can be accessed via fields instead of functions
window: corrected cursor bounds detection in window_move_cursor