diff options
author | Guilhem Moulin <guilhem@fripost.org> | 2015-04-01 10:26:19 +0200 |
---|---|---|
committer | Guilhem Moulin <guilhem@fripost.org> | 2015-04-01 10:26:19 +0200 |
commit | 95f2edde30d77fa71b72ae728cbbd3b5b292d511 (patch) | |
tree | b43f729585f5a060b0915ee234f134137400f75b /cli/icevault | |
parent | 6da9213a31752e2908a8b721cb88b6cd190d60f5 (diff) |
Don't add trailing '/' when completing.
Diffstat (limited to 'cli/icevault')
-rwxr-xr-x | cli/icevault | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/icevault b/cli/icevault index 4848cd7..034bb9d 100755 --- a/cli/icevault +++ b/cli/icevault @@ -732,9 +732,9 @@ if ($COMMAND eq '_complete') { if (all { /\A\Q$s\E:\/\/\Q$h\E\// } @matches) { # common host: list all ids } elsif (all { /\A\Q$s\E:\/\// } @matches) { # common scheme: list only hosts - s#/[^\P{Print}\/]+\z#/# foreach @matches; + s#/[^\P{Print}\/]+\z## foreach @matches; } else { # no common scheme: list only schemes - s#://[^\P{Graph}\/]+/[^\P{Print}\/]+\z#://# foreach @matches; + s#://[^\P{Graph}\/]+/[^\P{Print}\/]+\z## foreach @matches; } my %matches = map {($_ => 1)} grep defined, @matches; |