aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/move.c
diff options
context:
space:
mode:
authorJack Danger Canty <jackdanger@squareup.com>2015-01-19 22:21:14 -0800
committerJack Danger Canty <jackdanger@squareup.com>2015-01-22 21:57:03 -0800
commit19c22cdb80e30711be5af33cb6726566ad629944 (patch)
treee83b3e922b402921da48d721b7b8199b6a0a62f2 /src/nvim/move.c
parentd550eecf7092397d064df26850d4a09d9ab4a481 (diff)
downloadrneovim-19c22cdb80e30711be5af33cb6726566ad629944.tar.gz
rneovim-19c22cdb80e30711be5af33cb6726566ad629944.tar.bz2
rneovim-19c22cdb80e30711be5af33cb6726566ad629944.zip
"halfway a line" is a very confusing phrase
If you Google for this phrase found in the Vim documentation you'll find almost exclusively hits from the Vim documentation. I think changing "halfway a line" to "halfway through a line" makes more sense. There seems to be an pervasive odd use of the word 'halfway' in the original docs which I'm updating everywhere.
Diffstat (limited to 'src/nvim/move.c')
-rw-r--r--src/nvim/move.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/move.c b/src/nvim/move.c
index 40f301e595..1ba064c65f 100644
--- a/src/nvim/move.c
+++ b/src/nvim/move.c
@@ -1629,10 +1629,10 @@ void scroll_cursor_bot(int min_scroll, int set_topbot)
curwin->w_valid |= VALID_TOPLINE;
}
-/*
- * Recompute topline to put the cursor halfway the window
- * If "atend" is TRUE, also put it halfway at the end of the file.
- */
+/// Recompute topline to put the cursor halfway across the window
+///
+/// @param atend if TRUE, also put the cursor halfway to the end of the file.
+///
void scroll_cursor_halfway(int atend)
{
int above = 0;