vile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vile] when is $term-cols initialized?


From: lists-vile
Subject: Re: [vile] when is $term-cols initialized?
Date: Fri, 16 Mar 2012 19:05:47 -0400
User-agent: Mutt/1.4.2.3i

On Fri, Mar 16, 2012 at 06:21:27PM -0400, Thomas Dickey wrote:
> On Fri, Mar 16, 2012 at 12:01:47PM -0400, address@hidden wrote:
> > I'm using this code in my .vilerc:
> > 
> > ~if &geq $term-cols 80
> >     set number
> > ~endif
> > 
> > This does not work when vile first starts up but if I execute it via a
> > procedure after startup it works fine.
> 
> that's odd.  Reading the code (in main.c) I see that it's opening the
> terminal (which sets that variable) before running the .vilerc, so
> it should be set in your script.  I tested my assumption with both
> the terminfo and X versions (win32 isn't convenient at the moment),
> and both numbered the file.
> 
> What am I overlooking?
> 
> -- 
> Thomas E. Dickey <address@hidden>
> http://invisible-island.net
> ftp://invisible-island.net

You're not overlooking anything.  I tested on a different system and it
worked, when I went back and looked at the original system I see that I
had a type-o on my first test.

~if &geg $term-cols 80

geg vs geq

It didn't kick out an error message, it seems the entire condition was
deemed false. I didn't expect that as I've had vile stop and provide
error messages when failing to parse .vilerc in the past.

Sorry to waste your time on that one :(

Wayne



reply via email to

[Prev in Thread] Current Thread [Next in Thread]