summaryrefslogtreecommitdiff
diff options
-rw-r--r--src/move.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/move.c b/src/move.c
index 967ac9e..9e16e4c 100644
--- a/src/move.c
+++ b/src/move.c
@@ -227,7 +227,9 @@ void do_cycle(void)
/* Scroll the line with the cursor to the center of the screen. */
void do_center(void)
{
- do_cycle(); /* The main loop has set 'cycling_aim' to zero. */
+ adjust_viewport(CENTERING);
+ draw_all_subwindows();
+ full_refresh();
}
#endif /* !NANO_TINY */