On 2016-08-07 07:33:55 -0700, Kevin J. McCarthy wrote:
> It depends how you return to the index.  Right now, if you hit <exit>,
> and then re-open the message, Mutt does not remember the position.

This is also what I observed without the patch.

> It only remembers the position if you hit up,down,tab, etc (a keymap
> that intends to open *another* message but fails), and then re-open the
> same message again.

which is IMHO unintuitive. If the position is remembered, this should
not depend on how the message is reopened. Then, this means that the
position for each message should be remembered. If such a feature is
implemented, it should be optional and there should be a function to
forget all the positions.

> This is what I meant when I said "I consider the original behavior a
> mistake".  Mutt is purposely clearing the position when you deliberately
> exit the message.  All other operations are saving the position, but
> this was meant to be just for those redirecting back to the same message
> (sort, sync, toggle headers, break/link thread, edit type, and
> pgp-check-traditional).

I agree.

> This isn't something I would bother fixing, except that it causes a bug.
> Once in a while, a message happens to share the same address as the last
> saved header pointer, and the pager tries to open the new message and
> scroll down to the position in the old message.

which could even be below the last line of the new message.

-- 
Vincent Lefèvre <vinc...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Reply via email to