Skip to content
Snippets Groups Projects
Commit be3ffbdc authored by deuce's avatar deuce
Browse files

Allow an offset of 0 for next/previous search.

parent 479d9bbe
No related branches found
No related tags found
No related merge requests found
......@@ -88,7 +88,7 @@ function find_np_message(offset,next)
if(!next)
step=1;
for(last_offset=parseInt(offset)+step;last_offset>0 && (idx=msgbase.get_msg_index(true,last_offset))!=null;last_offset+=step) {
for(last_offset=parseInt(offset)+step;last_offset>=0 && (idx=msgbase.get_msg_index(true,last_offset))!=null;last_offset+=step) {
if(idx.attr&MSG_DELETE)
continue;
if(idx.attr&MSG_PRIVATE && !idx_to_user(idx))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment