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

Re: PATCH: MH for Mailboxes (TM)



On Mar 26, 10:34am, Sven Wischnowsky wrote:
} 
} Bart Schaefer wrote:
} 
} > By the way (Sven), when I complete after "mutt -f " (with no prefix in
} > the current word) I -still- get a blank item as the first menu-selection.
} > I thought we fixed that bug a long time ago?
} 
} Yes, sounds very familiar.  I don't remember exactly and since I don't 
} use anything I could complete with _mailboxes I can't easily try, but
} normally that's because one of the expansions leaves an empty element
} in an array.

I've looked through _complete_debug output and not managed to find any
cases where `compadd' is called with an array containing an empty element.

However, at _multi_parts line 164-166, the expression

	"${(@)${(@M)matches:#*${sep}}%%${sep}*}"

expands to the empty string.  Could that be the source of the problem?

-- 
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