- set_selected (mp, msgnum);
-
- /* check if highest or lowest selected */
- if (mp->numsel == 0) {
- mp->lowsel = msgnum;
- mp->hghsel = msgnum;
- } else {
- if (msgnum < mp->lowsel)
- mp->lowsel = msgnum;
- if (msgnum > mp->hghsel)
- mp->hghsel = msgnum;
- }
-
- /* increment number selected */
- mp->numsel++;