mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-11-19 21:44:11 +01:00
moved from Completion/Commands/_expand_word
This commit is contained in:
parent
c6f9f6e736
commit
3b97ef45e5
15
Completion/Base/Widget/_expand_word
Normal file
15
Completion/Base/Widget/_expand_word
Normal file
@ -0,0 +1,15 @@
|
||||
#compdef -K _expand_word complete-word \C-xe _list_expansions list-choices \C-xd
|
||||
|
||||
# Simple completion front-end implementing expansion.
|
||||
|
||||
setopt localoptions ${_comp_options[@]}
|
||||
|
||||
local curcontext="$curcontext"
|
||||
|
||||
if [[ -z "$curcontext" ]]; then
|
||||
curcontext="expand-word:::"
|
||||
else
|
||||
curcontext="expand-word:${curcontext#*:}"
|
||||
fi
|
||||
|
||||
_main_complete _expand
|
Loading…
Reference in New Issue
Block a user