projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rocco Rutte:
[apps/madmutt.git]
/
sidebar.c
diff --git
a/sidebar.c
b/sidebar.c
index
77c5510
..
eb0436a
100644
(file)
--- a/
sidebar.c
+++ b/
sidebar.c
@@
-348,7
+348,7
@@
static int exist_next_new () {
int i = 0;
if (list_empty(Incoming))
return (-1);
int i = 0;
if (list_empty(Incoming))
return (-1);
- i = CurBuffy;
+ i = CurBuffy
+ 1
;
while (i < Incoming->length)
if (((BUFFY*) Incoming->data[i++])->msg_unread)
return (i-1);
while (i < Incoming->length)
if (((BUFFY*) Incoming->data[i++])->msg_unread)
return (i-1);
@@
-360,7
+360,7
@@
static int exist_prev_new () {
int i = 0;
if (list_empty(Incoming))
return (-1);
int i = 0;
if (list_empty(Incoming))
return (-1);
- i = CurBuffy;
+ i = CurBuffy
- 1
;
while (i >= 0)
if (((BUFFY*) Incoming->data[i--])->msg_unread)
return (i+1);
while (i >= 0)
if (((BUFFY*) Incoming->data[i--])->msg_unread)
return (i+1);