}
/*
- ** Special processing for "cur" sequence. We assume that the
- ** "cur" sequence and mp->curmsg are in sync (see seq_add.c).
+ ** Special processing for the cur sequence. We assume that the
+ ** cur sequence and mp->curmsg are in sync (see seq_add.c).
** This is returned, even if message doesn't exist or the
** folder is empty.
*/
- if (!strcmp(current, seqname)) {
+ if (strcmp(seq_cur, seqname)==0) {
if (mp->curmsg) {
sprintf(buffer, "%s", m_name(mp->curmsg));
return (buffer);
/*
** Scan to the end of this message range
*/
- for (++i; i <= mp->hghmsg && does_exist(mp, i) && in_sequence(mp, seqnum, i);
- ++i)
+ for (++i; i <= mp->hghmsg && does_exist(mp, i) &&
+ in_sequence(mp, seqnum, i); ++i)
;
if (i - j > 1) {