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

Re: puzzling compset -P behaviour



On Mar 10,  4:34pm, Adam Spiers wrote:
}
} $PREFIX and $IPREFIX seem to get "reset" with nested calls to
} compset -P.

Look at the doc for $compstate[restore].

You need to assign compstate[restore]=no (or unset it) inside the functions
that want their PREFIX/SUFFIX changes to remain visible outside.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



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