Ticket #2949 (closed defect: fixed)
Off-by-one bug in imap_complete_hosts
| Reported by: | x-way | Owned by: | mutt-dev |
|---|---|---|---|
| Priority: | trivial | Milestone: | |
| Component: | mutt | Version: | 1.5.16 |
| Keywords: | Cc: |
Description
I discovered a bug in the IMAP folder completion, which caused that the last IMAP folder in mailboxes was never proposed for completion.
How to reproduce it:
Put something like this in .muttrc:
mailboxes "imap://aaa" mailboxes "imap://bbb" mailboxes "imap://ccc"
Lauch Mutt and press c.
At the prompt type imap://a and press <TAB>, this completes to imap://aaa/.
Delete everything and type imap://b and press <TAB>, this completes to imap://bbb/.
Delete everything and type imap://c and press <TAB>, this does not complete to anything but it should complete to imap://ccc/.
The attached patch fixes this bug (wrong loop-test in a for-loop).
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
