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

Re: segfault when overriding complete-word then trying to use tab completion



On Mar 6,  9:37am, Sven Wischnowsky wrote:
} Subject: Re: segfault when overriding complete-word then trying to use tab
}
} I still can't reproduce it.

I can, but only in 4.0.1, not in 4.0.4 (so far) nor 4.1.x.

The problem is that .complete-word is a completion widget, but it's being
called from a function installed as a normal widget with `zle -N'.  This
confuses the completion code somehow -- I haven't got a sensible stack
trace -- but it appears in 4.1.x as though calling `zle .complete-word'
from a normal widget will bypass the new completion system and always
invoke compctl.

In 4.0.1, on the other hand, it appears to depend on the order in which
one runs `compinit' and `zle -N'.  Sometimes it invokes compctl and all
works well, other times it tries to invoke new completion and blows up.

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