diff options
Diffstat (limited to 'src/screen_help.c')
-rw-r--r-- | src/screen_help.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/screen_help.c b/src/screen_help.c index 850608181..363b440cf 100644 --- a/src/screen_help.c +++ b/src/screen_help.c @@ -248,16 +248,7 @@ help_cmd(screen_t *screen, mpd_unused mpdclient_t *c, command_t cmd) lw, help_text_rows, cmd, list_callback, NULL)) { /* center the row */ - if (lw->selected > lw->rows / 2) - lw->start = lw->selected - lw->rows / 2; - else - lw->start = 0; - if (lw->start + lw->rows > (unsigned)help_text_rows) { - if (lw->rows < (unsigned)help_text_rows) - lw->start = help_text_rows - lw->rows; - else - lw->start = 0; - } + list_window_center(lw, help_text_rows, lw->selected); return 1; } |