Fixes (page)up/(page)down to go to beginning/end when on first/last line