aboutsummaryrefslogtreecommitdiffstats
path: root/mail/message-list.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2001-01-07 11:45:50 +0800
committerChris Lahey <clahey@src.gnome.org>2001-01-07 11:45:50 +0800
commitdf57651390a172b0192b2dd158d24ec9ff271d83 (patch)
tree5706fd4ca873e47e5fce4c3febb99683b0946a53 /mail/message-list.c
parent670a2b34ff6e9a3912ea8fcb93cea9f6b83317d8 (diff)
downloadgsoc2013-evolution-df57651390a172b0192b2dd158d24ec9ff271d83.tar
gsoc2013-evolution-df57651390a172b0192b2dd158d24ec9ff271d83.tar.gz
gsoc2013-evolution-df57651390a172b0192b2dd158d24ec9ff271d83.tar.bz2
gsoc2013-evolution-df57651390a172b0192b2dd158d24ec9ff271d83.tar.lz
gsoc2013-evolution-df57651390a172b0192b2dd158d24ec9ff271d83.tar.xz
gsoc2013-evolution-df57651390a172b0192b2dd158d24ec9ff271d83.tar.zst
gsoc2013-evolution-df57651390a172b0192b2dd158d24ec9ff271d83.zip
Made it so that going to the next or previous message in the list will at
2001-01-06 Christopher James Lahey <clahey@helixcode.com> * message-list.c (message_list_select): Made it so that going to the next or previous message in the list will at least move one message, even if the current message matches the query. This makes 'n' go to the next unread message, even if the current message is unread. svn path=/trunk/; revision=7288
Diffstat (limited to 'mail/message-list.c')
-rw-r--r--mail/message-list.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mail/message-list.c b/mail/message-list.c
index 035e71f4f3..bd5a848f41 100644
--- a/mail/message-list.c
+++ b/mail/message-list.c
@@ -386,6 +386,9 @@ message_list_select (MessageList *message_list, int base_row,
/* model_to_view_row etc simply dont work for sorted views. Sigh. */
vrow = e_table_model_to_view_row (et, base_row);
+ if (vrow != last)
+ vrow += direction;
+
/* We don't know whether to use < or > due to "direction" */
while (vrow != last) {
mrow = e_table_view_to_model_row (et, vrow);