Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: How to make underlining of a command line disappear after an ordinary key press? (2)



Hi Mikeal,  

I had actually tried that before, but I got: 

"ordinary-key-press:2: job table full or recursion limit 
exceeded" 

Moreover "zle -N self-insert ordinary-key-press"
might bind some non-ordinary keys as well. 

On the other hand I guess the widget could handle exceptions 
for the non-ordinary-keys case. 

I guess the recursion limit error is by the double self-insert. Without it:  

"""ordinary-key-press(){ 
	region_highlight=("0 0 underline")
}

zle -N self-insert ordinary-key-press
"""

seems to do nothing. 

Thank you anyway! 

Guido 

--- On Sun, 11/10/09, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:

> From: Mikael Magnusson <mikachu@xxxxxxxxx>
> Subject: Re: How to make underlining of a command line disappear after an  ordinary key press? (2)

[snip]

> I think you can just do zle -N self-insert
> ordinary-key-press



      Get your new Email address!
Grab the Email name you&#39;ve always wanted before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/



Messages sorted by: Reverse Date, Date, Thread, Author