summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-04-26 11:22:24 +0200
committerYorhel <git@yorhel.nl>2009-04-26 11:22:24 +0200
commitceecccc3aea5027871c93999a309da186c3f1b7e (patch)
tree035e99a6d342b601ec2fbf306d06659990a1124b
parent43fec6328137c9f938a2f62fced7c81813cee136 (diff)
Move cursor to the correct line in browse_draw()
-rw-r--r--src/browser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/browser.c b/src/browser.c
index 0aaa51c..5869fe9 100644
--- a/src/browser.c
+++ b/src/browser.c
@@ -287,6 +287,7 @@ void browse_draw() {
break;
i++;
}
+ selected -= i;
/* print the list to the screen */
for(i=0; n!=NULL && i<winrows-3; n=n->next) {