jaredpar/VsVim — pull request #1216 by ricksladkey (2013-12-29 06:52:33+00:00)
Title: Scroll by half of the size of the text view, not half of the number of visible lines.

Vim's half-screen scrolling commands (`Ctrl+D`, `Ctrl+U`) do not depend on how many lines are actually displayed but on how big the screen is. VsVim uses the number of lines actually displayed, which is incorrect when fewer lines are displayed than can fit on the screen.

Steps to reproduce:

* Assume the screen fits 40 lines.
* Create a text file that has 45 lines.
* Open the text file in Visual Studio.
* Issue the `Ctrl+F` command to page forward.
* The last five lines of the file are displayed at the top of the window.
* Press `Ctrl+U` to page up by half a screen.
* Notice that the caret has only been moved up 2 lines, instead of 20.