From: Ari Johnson Date: Thu, 24 Mar 2016 20:24:37 +0000 (-0400) Subject: Fix off-by-one error in F.SELECTPAGE X-Git-Url: https://git.theari.com/?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=cobranet.git Fix off-by-one error in F.SELECTPAGE --- diff --git a/functions.mush b/functions.mush index 503cb34..831cda3 100644 --- a/functions.mush +++ b/functions.mush @@ -250,7 +250,7 @@ /@@ Get the where its at in the list @@/ [setq(p,match(%qM,%qf))] /@@ Then Isolate Where that is in the Message List @@/ - [add(if(eq(mod(%qP,10),0),1,1),val(div(%qP,10)))] + [add(if(eq(mod(%qP,10),0),0,1),val(div(%qP,10)))] , /@@ There is no unread message. So grab the last page possible @@/ [if(mod(setr(0,words(%qM)),10),