Is it possible to redraw screen after doing a charset change?

Kevin J. McCarthy kevin at 8t8.us
Tue Mar 13 16:58:48 UTC 2018


On Tue, Mar 13, 2018 at 02:20:19PM +0000, David Woodfall wrote:
> I have a couple of binds to change charset between UTF-8/ISO-8859-1.
> The problem is that I need to exit from the pager and then reopen the
> message to see the changes, so I added those commands to the macro,
> which works fine.
> 
> However, this doesn't work in the index, so is there a way to redraw
> the screen after a charset change? I don't see anything in the manual
> about it.

I think the mailbox may need to be reopened for mutt to reprocess the
headers, because they are stored in memory.

In version 1.8.0 and higher, the <mark-message> function can be used to
save your place, and the value in $mark_macro_prefix to restore it:
  macro index ,r "<mark-message>a<enter><change-folder>^<enter>'a"

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://mutt.org/pipermail/mutt-users/attachments/20180313/7bae5c01/attachment-0001.asc>


More information about the Mutt-users mailing list