Patch to the "m<Y> next message" function, submitted by matt
authorArt Cancro <ajc@citadel.org>
Sat, 21 Jan 2006 21:23:25 +0000 (21:23 +0000)
committerArt Cancro <ajc@citadel.org>
Sat, 21 Jan 2006 21:23:25 +0000 (21:23 +0000)
citadel/ChangeLog
citadel/messages.c

index 84c697e19bb32027dad88af0f6f456cb82a752e8..8949c10e2649329942d21c3a56da0240c7c4980a 100644 (file)
@@ -1,5 +1,8 @@
 $Id$
 
+Sat Jan 21 16:22:51 EST 2006 ajc
+* Patch to the "m<Y> next message" function, submitted by matt
+
 Thu Jan 19 21:30:20 EST 2006 ajc
 * Added VIEW_WIKI to the available view types.  EUID indexing is "on" for
   this view.  Everything else will be done in WebCit.
index 442089552e2e1f32bbbd90f1a4dd76c9498d6a71..5dd4a02c861e4087b08f6a24f2bbf0bb578ef470 100644 (file)
@@ -1839,7 +1839,7 @@ RMSGREAD: scr_flush();
             /* find the next message by me, stay here if we find nothing */
             int finda;
             int lasta = a;
-            for (finda = a; ((finda < num_msgs) && (finda >= 0)); finda += rdir)
+            for (finda = (a + rdir); ((finda < num_msgs) && (finda >= 0)); finda += rdir)
               {
                /* This is repetitively dumb, but that's what computers are for.
                   We have to load up messages until we find one by us */