karelzak / mutt-kz

mutt-kz is DEPRECATED in favor of neomutt project.
https://neomutt.org
Other
296 stars 51 forks source link

Garbled lines in inbox #58

Closed mrschyte closed 10 years ago

mrschyte commented 10 years ago

Certain messages get a garbled line in the mailbox if the terminal window is small enough.

mrschyte commented 10 years ago

http://i40.tinypic.com/2r1zfqo.jpg

karelzak commented 10 years ago

On Fri, Dec 20, 2013 at 01:07:55AM -0800, Peter Kasza wrote:

Certain messages get a garbled line in the mailbox if the terminal window is small enough.

And your index_format setting?

Karel

Karel Zak kzak@redhat.com http://karelzak.blogspot.com

mrschyte commented 10 years ago

set index_format = "%4C %Z %{%b %d} %-15.15L (%?l?%4l&%4c?) %s %* [%g]"

mrschyte commented 10 years ago

It seems to me that the %* padding is calculating the length of the %g tags wrong. Without it everything displays fine, even on a smaller terminal.

duckdalbe commented 10 years ago

Same problem here, I also found the "soft-padding" to be the culprit: when the line would need to be shortened it'll disappear until the window is made broad enough to display the whole line unabridged.

karelzak commented 10 years ago

Yep, there is very probably problem with mutt_wstr_trunc() where the code incorrectly compares unsigned and signed numbers. I'm going to fix it next week,