]> granicus.if.org Git - neomutt/commit
Create ATTACH_CONTEXT to hold attachment index. (see #3728)
authorKevin McCarthy <kevin@8t8.us>
Fri, 11 Aug 2017 01:18:18 +0000 (18:18 -0700)
committerRichard Russon <rich@flatcap.org>
Fri, 1 Sep 2017 12:44:58 +0000 (13:44 +0100)
commit393ad08e77c1d9615c0930204c9682ff5036a858
tree9d0dff06ab7d33964c3381a156be82797608be75
parente2f560efb850cd8fbc82bf3bac36b62b18385ac5
Create ATTACH_CONTEXT to hold attachment index. (see #3728)

Move the idx and idxlen into ATTACH_CONTEXT.  In subsequence patches,
this structure will hold more useful items, such as the virtual index.

The swap out is straightforward, except for:
  * update_idx() in compose.c, which post-increments the idxlen in the
    call and again in the function.
  * mutt_gen_attach_list() which doesn't need to returns the new values.
attach.c
attach.h
compose.c
recvattach.c