man outputs badly line-wrapped text. If I run
man, quit, then resize the terminal window and run
man again, it formats it according to the new window width. But if I run
man, resize the window (the text gets messy), quit, and then run man again, it still formats it badly like before.
But sometimes it doesn't happen even if I resize the window while
man is running, and sometimes it happens even after I make a new, resized terminal before running
man for the first time in that window.
How can this be fixed? I have tried the
man -c option and R, r, ⌃R and ⌃L to “repaint” the screen while viewing the manpage (my
I don't have MANWIDTH set. I'm using iTerm2.