Fix off-by-one error in F.SELECTPAGE master
authorAri Johnson <ari@theari.com>
Thu, 24 Mar 2016 20:24:37 +0000 (16:24 -0400)
committerAri Johnson <ari@theari.com>
Thu, 24 Mar 2016 20:24:37 +0000 (16:24 -0400)
functions.mush

index 503cb344f0afb2ffae85474899ba0c49fdbd4daf..831cda38e43c0128a3fb43899db6983311f04057 100644 (file)
                                     /@@ Get the where its at in the list @@/
                                     [setq(p,match(%qM,%qf))]
                                     /@@ Then Isolate Where that is in the Message List @@/
                                     /@@ 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),
                                    ,
                                     /@@ There is no unread message. So grab the last page possible @@/
                                      [if(mod(setr(0,words(%qM)),10),