Skip to content

Commit

Permalink
Merge pull request let-us-go#7 from remones/enhance/enhance_complete
Browse files Browse the repository at this point in the history
Ignored with the suffix slash of zpath when completion
  • Loading branch information
mozillazg authored May 30, 2018
2 parents add6912 + 4ed72fc commit 1ef9db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/completer.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func argumentsCompleter(args []string, cmd *Cmd) []prompt.Suggest {
first := args[0]
switch first {
case "get", "ls", "create", "set", "delete":
p := args[1]
p := strings.TrimSuffix(args[1], "/")
if len(args) > 2 {
switch first {
case "create", "set":
Expand Down

0 comments on commit 1ef9db2

Please sign in to comment.