diff --git a/src/list_window.h b/src/list_window.h
index 83beeacaa47f492c162abf4998a2ab7b42349929..bac5d5e77d6aadbeddb3315e8107b260942d7750 100644 (file)
--- a/src/list_window.h
+++ b/src/list_window.h
#include "config.h"
#include "command.h"
#include "colors.h"
+#include "ncmpc_curses.h"
#include <glib.h>
#include <stdbool.h>
-#ifdef HAVE_NCURSESW_NCURSES_H
-#include <ncursesw/ncurses.h>
-#else
-#include <ncurses.h>
-#endif
-
typedef const char *
(*list_window_callback_fn_t)(unsigned i, void *data);
void
list_window_center(struct list_window *lw, unsigned n);
+/**
+ * Scrolls the view to item n, as if the cursor would have been moved
+ * to the position.
+ */
+void
+list_window_scroll_to(struct list_window *lw, unsigned n);
+
/**
* Sets the position of the cursor. Disables range selection.
*/