X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/13ae9ba066e6b8c114daa6714895a56816465f49..6ce8434dcf6ff95db7bc75a97fd1144e54206dfe:/sbr/seq_del.c diff --git a/sbr/seq_del.c b/sbr/seq_del.c index 8c353f38..97e35783 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. */