Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Completion/Unix/Type/_canonical_paths
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,13 @@ _canonical_paths_add_paths () {
# ### Ideally, this codepath would do what the 'if' above does,
# ### but telling compadd to pretend the "word on the command line"
# ### is ${"the word on the command line"/$origpref/$canpref}.
matches+=(${${(M)files:#$canpref*}/$canpref/$origpref})
() {
local -a tmp_buffer tmp_buffer2
tmp_buffer=(${${(M)files:#$canpref*}/$canpref/$origpref})
compadd -A tmp_buffer2 "$__gopts[@]" -a tmp_buffer
matches+=($tmp_buffer2)
}
# matches+=(${${(M)files:#$canpref*}/$canpref/$origpref})
fi

for subdir in $expref?*(@); do
Expand Down