<<< Date Index >>>     <<< Thread Index >>>

Re: :set wrapmargin=-72



On Tuesday, April 12 at 10:44 AM, quoth Gary Johnson:
> On 2005-04-12, Elmar Loos <elInfo@xxxxxxx> wrote:
> 
> > Since I normally do not know the width of my xterm, I tried to set
> > wrapmargin to a negative number in order to get a wrap after 72 columns.
> > The result was quite funny ;) but not very useful. Now, I patched my
> > mutt installation with the following patch:
> 
> [...]
> 
> > Could it be an idea to generally implement this behaviour to mutt?
> 
> I'm not saying this isn't a good idea, but you can also achieve this 
> behavior without modifying mutt by using the shell:
> 
>     set wrapmargin=`echo $(( $COLUMNS - 72 ))`
> 
> That command could be enhanced if you were concerned about COLUMNS 
> ever being less than 72.

The other tricky bit there, that that solution doesn't handle, is what 
mutt should do if the terminal gets resized while mutt is running.

~Kyle
-- 
Patriotism means to stand by the country. It does not mean to stand by the
President.
-- Theodore Roosevelt

Attachment: signature.asc
Description: Digital signature