diff options
author | Kalle Wallin <kaw@linux.se> | 2004-07-12 18:03:09 +0000 |
---|---|---|
committer | Kalle Wallin <kaw@linux.se> | 2004-07-12 18:03:09 +0000 |
commit | ac6690f65f65ef8bd823fa6a9fa37ec05afd6acb (patch) | |
tree | 5f49331c1622be3a37a134af24d12ca4c60474df /src/list_window.c | |
parent | d5ca1e00d91bbc0ad4543a6456c9a3209ca2e269 (diff) | |
download | mpd-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.c | 19 |
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++) |