adjust cursor screen row when moving cursor up/down by screen rows

This commit is contained in:
Josh Holtrop 2017-10-14 12:22:38 -04:00
parent 314c840105
commit 7199bb56e3

View File

@ -170,6 +170,8 @@ bool BufferView::cursor_move(CursorMovement which, bool allow_eol)
{ {
case CursorMovement::LEFT: case CursorMovement::LEFT:
case CursorMovement::RIGHT: case CursorMovement::RIGHT:
case CursorMovement::SCREEN_ROW_UP:
case CursorMovement::SCREEN_ROW_DOWN:
determine_new_cursor_screen_row(); determine_new_cursor_screen_row();
break; break;
case CursorMovement::UP: case CursorMovement::UP: