Skip to content

Commit

Permalink
Try #986:
Browse files Browse the repository at this point in the history
  • Loading branch information
bors[bot] committed Jan 11, 2019
2 parents adb3925 + da6faad commit 17ab06f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/REPLMode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -779,16 +779,16 @@ end

function canonical_names()
names = String[]
# add "package" commands
packagecmds = [x.canonical_name for x in unique(values(super_specs["package"]))]
append!(names, sort!(packagecmds))
# add other super commands, e.g. "registry"
for (super, specs) in pairs(super_specs)
super == "package" && continue # skip "package"
for spec in unique(values(specs))
push!(names, join([super, spec.canonical_name], "-"))
end
end
for spec in unique(values(super_specs["package"]))
push!(names, spec.canonical_name)
supercmds = [join([super, spec.canonical_name], "-") for spec in unique(values(specs))]
append!(names, sort!(supercmds))
end
return sort!(names)
return names
end

function complete_installed_packages(options, partial)
Expand Down

0 comments on commit 17ab06f

Please sign in to comment.