mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-17 10:20:55 +01:00
18 lines
328 B
Text
18 lines
328 B
Text
#autoload
|
|
|
|
if [[ -n $ZSH_TRACE_GENERIC_WIDGET ]]; then
|
|
local widget=$ZSH_TRACE_GENERIC_WIDGET
|
|
unset ZSH_TRACE_GENERIC_WIDGET
|
|
$widget _generic
|
|
return
|
|
fi
|
|
|
|
local curcontext="${curcontext:-}"
|
|
|
|
if [[ -z "$curcontext" ]]; then
|
|
curcontext="${WIDGET}:::"
|
|
else
|
|
curcontext="${WIDGET}:${curcontext#*:}"
|
|
fi
|
|
|
|
_main_complete "$@"
|