projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added ml script to docs/contrib.
[mmh]
/
sbr
/
seq_del.c
diff --git
a/sbr/seq_del.c
b/sbr/seq_del.c
index
67a93bb
..
97e3578
100644
(file)
--- a/
sbr/seq_del.c
+++ b/
sbr/seq_del.c
@@
-2,8
+2,6
@@
/*
* seq_del.c -- delete message(s) from a sequence
*
/*
* seq_del.c -- delete message(s) from a sequence
*
- * $Id$
- *
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
* This code is Copyright (c) 2002, by the authors of nmh. See the
* COPYRIGHT file in the root directory of the nmh distribution for
* complete copyright information.
@@
-27,7
+25,8
@@
int
seq_delsel (struct msgs *mp, char *cp, int public, int zero)
{
int
seq_delsel (struct msgs *mp, char *cp, int public, int zero)
{
- int i, msgnum, new_seq = 1;
+ unsigned int i;
+ int msgnum, new_seq = 1;
if (!seq_nameok (cp))
return 0;
if (!seq_nameok (cp))
return 0;
@@
-84,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 (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.
*/
/*
* Set the public/private bit for this sequence.
*/