aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKalle Wallin <kaw@linux.se>2004-03-26 23:16:49 +0000
committerKalle Wallin <kaw@linux.se>2004-03-26 23:16:49 +0000
commit19d591bb4a00e19baf6d31c263f695792548b587 (patch)
treee0d81004d1d73fe7dcf11df7f95ded57e8d7c1dc
parentc737b402afdbf4eb38109a49c2a0ac2c86462521 (diff)
downloadmpd-19d591bb4a00e19baf6d31c263f695792548b587.tar.gz
mpd-19d591bb4a00e19baf6d31c263f695792548b587.tar.xz
mpd-19d591bb4a00e19baf6d31c263f695792548b587.zip
Fixed bug 0000212
git-svn-id: https://svn.musicpd.org/ncmpc/trunk@505 09075e82-0dd4-0310-85a5-a0d7c8717e4f
-rw-r--r--list_window.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/list_window.c b/list_window.c
index ee08a8b81..ab6c7d43b 100644
--- a/list_window.c
+++ b/list_window.c
@@ -166,11 +166,15 @@ list_window_find(list_window_t *lw,
lw->selected = i;
return 0;
}
- i++;
if( wrap && i==lw->selected )
return 1;
+ i++;
+ }
+ if( wrap )
+ {
+ i=0; /* first item */
+ beep();
}
- i=0; /* first item */
}
return 1;
}
@@ -197,11 +201,15 @@ list_window_rfind(list_window_t *lw,
lw->selected = i;
return 0;
}
- i--;
if( wrap && i==lw->selected )
return 1;
+ i--;
+ }
+ if( wrap )
+ {
+ i=rows-1; /* last item */
+ beep();
}
- i=rows-1; /* last item */
}
return 1;
}