aboutsummaryrefslogtreecommitdiffstats
path: root/src/list_window.c
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-07-12 18:03:09 +0000
committerKalle Wallin <kaw@linux.se>2004-07-12 18:03:09 +0000
commitac6690f65f65ef8bd823fa6a9fa37ec05afd6acb (patch)
tree5f49331c1622be3a37a134af24d12ca4c60474df /src/list_window.c
parentd5ca1e00d91bbc0ad4543a6456c9a3209ca2e269 (diff)
downloadmpd-ac6690f65f65ef8bd823fa6a9fa37ec05afd6acb.tar.gz
mpd-ac6690f65f65ef8bd823fa6a9fa37ec05afd6acb.tar.xz
mpd-ac6690f65f65ef8bd823fa6a9fa37ec05afd6acb.zip
Hide the cursor on the help screen (#247)
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@1854 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/list_window.c')
-rw-r--r--src/list_window.c19
1 files changed, 13 insertions, 6 deletions
diff --git a/src/list_window.c b/src/list_window.c
index 84c19a1c1..b541ac708 100644
--- a/src/list_window.c
+++ b/src/list_window.c
@@ -166,15 +166,22 @@ list_window_paint(list_window_t *lw,
int i;
int fill = options.wide_cursor;
- while( lw->selected < lw->start )
+ if( lw->flags & LW_HIDE_CURSOR )
{
- lw->start--;
- lw->clear=1;
+ lw->selected = -1;
}
- while( lw->selected >= lw->start+lw->rows )
+ else
{
- lw->start++;
- lw->clear=1;
+ while( lw->selected < lw->start )
+ {
+ lw->start--;
+ lw->clear=1;
+ }
+ while( lw->selected >= lw->start+lw->rows )
+ {
+ lw->start++;
+ lw->clear=1;
+ }
}
for(i=0; i<lw->rows; i++)