aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index 763a2d6212..b1a7044565 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -3093,7 +3093,7 @@ do_ecmd (
if (!skip_redraw) {
n = p_so;
if (topline == 0 && command == NULL)
- p_so = 999; /* force cursor halfway the window */
+ p_so = 999; // force cursor to be vertically centered in the window
update_topline();
curwin->w_scbind_pos = curwin->w_topline;
p_so = n;