X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=sbr%2Fseq_del.c;h=97e35783f863607417b6e93e5f4e8793895cd0ab;hb=eba408368603a3afe170ef61a334c3a479ea5a29;hp=8c353f380b53a19936dab4cad4822df86b023fb4;hpb=13ae9ba066e6b8c114daa6714895a56816465f49;p=mmh diff --git a/sbr/seq_del.c b/sbr/seq_del.c index 8c353f3..97e3578 100644 --- a/sbr/seq_del.c +++ b/sbr/seq_del.c @@ -83,6 +83,12 @@ seq_delsel (struct msgs *mp, char *cp, int public, int zero) if (is_selected (mp, msgnum)) clear_sequence (mp, i, msgnum); + if (! strcmp (cp, current) && + mp->lowsel <= mp->curmsg && mp->curmsg <= mp->hghsel) { + /* Removed current message indication, so reset curmsg. */ + mp->curmsg = 0; + } + /* * Set the public/private bit for this sequence. */