diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 2000-04-22 08:25:20 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 2000-04-22 08:25:20 +0000 |
commit | 89727a7243e611857a42608af7e593b48d786724 (patch) | |
tree | e0b3c1351fbe0cb6d7338067cc73f6186a1bf838 /pager.c | |
parent | 97e290f937c43946ace5f8b4641818da6c6cb16f (diff) |
Fix various inconsistencies with respect to thread deletion.
Diffstat (limited to 'pager.c')
-rw-r--r-- | pager.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -2099,6 +2099,8 @@ mutt_pager (const char *banner, const char *fname, int flags, pager_t *extra) CHECK_MODE(IsHeader (extra)); CHECK_READONLY; mutt_set_flag (Context, extra->hdr, M_DELETE, 1); + if (option (OPTDELETEUNTAG)) + mutt_set_flag (Context, extra->hdr, M_TAG, 0); redraw = REDRAW_STATUS | REDRAW_INDEX; if (option (OPTRESOLVE)) { @@ -2117,10 +2119,12 @@ mutt_pager (const char *banner, const char *fname, int flags, pager_t *extra) if (r != -1) { + if (option (OPTDELETEUNTAG)) + mutt_thread_set_flag (extra->hdr, M_TAG, 0, + ch == OP_DELETE_THREAD ? 0 : 1); if (option (OPTRESOLVE)) { - rc = (ch == OP_DELETE_THREAD) ? - OP_MAIN_NEXT_THREAD : OP_MAIN_NEXT_SUBTHREAD; + rc = OP_MAIN_NEXT_UNDELETED; ch = -1; } |