Ticket #3088 (closed defect: fixed)

Opened 3 months ago

Last modified 3 months ago

index redraw broken when sorting changes

Reported by: pdmef Owned by: mutt-dev
Priority: major Milestone: 1.6
Component: display Version: 1.5.18
Keywords: index redraw Cc:

Description

Redraw is broken in the index if the sorting method changes using <enter-command>, e.g. 'set sort=threads' when sort is 'date', or ':toggle strict_threads'.

The problem is that if the new index has more entries than with the old sort, mutt won't show all messages but only as many as there were in the old menu (though correctly sorted).

I think the bug is that menu->max with the entry count is computed before doing the resort, not after. The attached patch works for me.

Attachments

menufix.diff (0.8 kB) - added by pdmef 3 months ago.
index redraw fix

Change History

Changed 3 months ago by pdmef

index redraw fix

Changed 3 months ago by pdmef

  • status changed from new to closed
  • resolution set to fixed

(In [7783502a04c7]) Calculate menu->max after a possible resort in index (maybe changing number of messages). Closes #3088.

Note: See TracTickets for help on using tickets.